mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 17:57:14 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
35
trunk/newspellbook/inv_enervshdwb.nss
Normal file
35
trunk/newspellbook/inv_enervshdwb.nss
Normal file
@@ -0,0 +1,35 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: 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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user