Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,28 @@
//::///////////////////////////////////////////////
//:: Name Cold Comfort - OnExit
//:: FileName inv_coldcmfrtb.nss
//::///////////////////////////////////////////////
#include "inv_inc_invfunc"
void main()
{
//Get the object that is exiting the AOE
object oTarget = GetExitingObject();
//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_COLD_COMFORT)
{
RemoveEffect(oTarget, eAOE);
}
}
eAOE = GetNextEffect(oTarget);
}
}