PRC8_fork/trunk/users/Tenjac/spells/sp_forcewardB.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

44 lines
1.1 KiB
Plaintext

//:://////////////////////////////////////////////
//:: Name Forceward On Exit
//:: FileName sp_forcewardB.nss
//:://////////////////////////////////////////////
/** @file
*/
//:://////////////////////////////////////////////
//:: Created By: Tenjac
//:: Created On: 7/4/22
//:://////////////////////////////////////////////
#include "prc_sp_func"
#include "prc_add_spell_dc"
void main()
{
object oTarget = GetExitingObject();
if(GetLocalInt(oTarget, "PRCForcewardEntry"))
{
DeleteLocalInt(oTarget, "PRCForcewardEntry"));
}
effect eAOE;
if(GetHasSpellEffect(SPELL_SOLID_FOG, oTarget))
{
//Search through the valid effects on the target.
eAOE = GetFirstEffect(oTarget);
while (GetIsEffectValid(eAOE))
{
if (GetEffectCreator(eAOE) == GetAreaOfEffectCreator())
{
//If the effect was created by either half of Fog from the Void
if(GetEffectSpellId(eAOE) == SPELL_SOLID_FOG)
{
RemoveEffect(oTarget, eAOE);
}
}
}
//Get next effect on the target
eAOE = GetNextEffect(oTarget);
}
}