PRC8/nwn/nwnprc/trunk/smp/phs_s_darknessb.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

33 lines
1010 B
Plaintext

/*:://////////////////////////////////////////////
//:: Spell Name Darkness: On Exit
//:: Spell FileName PHS_S_DarknessB
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
AOE mearly applies a 20% consealment bonus. Note that if they have Daylight
applied to them, then it cannot be consealed as the effects negate each
other.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "PHS_INC_SPELLS"
void main()
{
// Remove one lot of darkness.
object oTarget = GetExitingObject();
effect eAOE = GetFirstEffect(oTarget);
while (GetIsEffectValid(eAOE))
{
if(GetEffectSpellId(eAOE) == PHS_SPELL_DARKNESS)
{
// Remove only 1
RemoveEffect(oTarget, eAOE);
return;
}
// Get next effect on the target
eAOE = GetNextEffect(oTarget);
}
}