PRC8/nwn/nwnprc/trunk/users/Tenjac/spells/sp_forcewardB.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05: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);
}
}