Files
Anphillia_PRC8/_removed/x0_s0_dirgeex.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

62 lines
1.6 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Dirge: On Exit
//:: x0_s0_dirgeET.nss
//:: Copyright (c) 2002 Bioware Corp.
//:://////////////////////////////////////////////
/*
MARCH 2003
Remove the negative effects of the dirge.
Modified by : Rabidness
on : June 20 , 2004
Changes:
- Fixed an issue where the AOE would dispell if the CASTER left the AOE
...when the AOE was supposed to be centered ON the caster.
*/
//:://////////////////////////////////////////////
//:: Created By:
//:: Created On:
//:://////////////////////////////////////////////
//:: Update Pass By:
#include "x2_inc_spellhook"
void main()
{
//Declare major variables
//Get the object that is exiting the AOE
object oTarget = GetExitingObject();
//VvVvV Rabidness addition VvVvV
if ( GetAreaOfEffectCreator() == oTarget )
return;
effect eAOE;
// SpawnScriptDebugger();
if(GetHasSpellEffect(SPELL_DIRGE, oTarget))
{
DeleteLocalInt(oTarget, "X0_L_LASTPENALTY");
//Search through the valid effects on the target.
eAOE = GetFirstEffect(oTarget);
while (GetIsEffectValid(eAOE) )
{
if (GetEffectCreator(eAOE) == GetAreaOfEffectCreator())
{
//If the effect was created by the Dirge spell then remove it
if(GetEffectSpellId(eAOE) == SPELL_DIRGE)
{
RemoveEffect(oTarget, eAOE);
//bValid = TRUE;
}
}
//Get next effect on the target
eAOE = GetNextEffect(oTarget);
}
}
}