///:://///////////////////////////////////////////// //:: Vine Mine, Entangle B: On Exit //:: X2_S0_VineMEntB //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /* Removes the entangle effect after the AOE dies. */ //::////////////////////////////////////////////// //:: Created By: Andrew Nobbs //:: Created On: Nov 25, 2002 //::////////////////////////////////////////////// #include "x2_inc_spellhook" void main() { //Declare major variables //Get the object that is exiting the AOE object oTarget = GetExitingObject(); effect eAOE; if(GetHasSpellEffect(530, oTarget)) { //Search through the valid effects on the target. eAOE = GetFirstEffect(oTarget); while (GetIsEffectValid(eAOE)) { if (GetEffectCreator(eAOE) == GetAreaOfEffectCreator()) { if(GetEffectType(eAOE) == EFFECT_TYPE_ENTANGLE) { //If the effect was created by the Acid_Fog then remove it if(GetEffectSpellId(eAOE) == 530) { RemoveEffect(oTarget, eAOE); } } } //Get next effect on the target eAOE = GetNextEffect(oTarget); } } }