PRC8/nwn/trunk/smp/phs_s_webb.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

37 lines
1.0 KiB
Plaintext

/*:://////////////////////////////////////////////
//:: Spell Name Web: On Exit
//:: Spell FileName PHS_S_WebA
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
Exit:
Remove all web spell effects. Web spells do not overlap.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "PHS_INC_SPELLS"
void main()
{
// Declare major variables
object oTarget = GetExitingObject();
object oCaster = GetAreaOfEffectCreator();
// Remove all web effects
effect eAOE = GetFirstEffect(oTarget);
while(GetIsEffectValid(eAOE))
{
// If the effect was created by the Web then remove it
if(GetEffectCreator(eAOE) == oCaster)
{
if(GetEffectSpellId(eAOE) == PHS_SPELL_WEB)
{
RemoveEffect(oTarget, eAOE);
}
}
eAOE = GetNextEffect(oTarget);
}
}