PRC8/nwn/trunk/newspellbook/inv_enervshdwb.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

36 lines
830 B
Plaintext

//::///////////////////////////////////////////////
//:: AoE: On Exit
//:://////////////////////////////////////////////
/*
*/
#include "prc_alterations"
#include "inv_inc_invfunc"
void main()
{
//Get the object that is exiting the AOE
object oTarget = GetExitingObject();
if(oTarget != GetAreaOfEffectCreator())
return;
//Search through the valid effects on the target.
effect eAOE = GetFirstEffect(oTarget);
while (GetIsEffectValid(eAOE))
{
//If the effect was created by the AoE then remove it
if (GetEffectCreator(eAOE) == GetAreaOfEffectCreator())
{
if(GetEffectSpellId(eAOE) == INVOKE_ENERVATING_SHADOW)
{
RemoveEffect(oTarget, eAOE);
}
}
eAOE = GetNextEffect(oTarget);
}
}