Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
44
trunk/users/Tenjac/spells/sp_forcewardB.nss
Normal file
44
trunk/users/Tenjac/spells/sp_forcewardB.nss
Normal file
@@ -0,0 +1,44 @@
|
||||
//:://////////////////////////////////////////////
|
||||
//:: 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user