forked from Jaysyn/PRC8
57 lines
1.6 KiB
Plaintext
57 lines
1.6 KiB
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Wall of Fire: On Enter
|
||
|
//:: NW_S0_WallFireA.nss
|
||
|
//:: Copyright (c) 2001 Bioware Corp.
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
Person within the AoE take 4d6 fire damage
|
||
|
per round.
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Preston Watamaniuk
|
||
|
//:: Created On: May 17, 2001
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
//:: modified by mr_bumpkin Dec 4, 2003
|
||
|
#include "inc_dispel"
|
||
|
|
||
|
|
||
|
#include "prc_add_spell_dc"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
||
|
SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_EVOCATION);
|
||
|
|
||
|
//Declare major variables
|
||
|
int nMetaMagic = PRCGetMetaMagicFeat();
|
||
|
object oTarget;
|
||
|
|
||
|
//Declare and assign personal impact visual effect.
|
||
|
effect eVis = EffectVisualEffect( VFX_IMP_BREACH );
|
||
|
effect eImpact = EffectVisualEffect( VFX_FNF_DISPEL_GREATER );
|
||
|
|
||
|
int nCasterLevel = AoECasterLevel(OBJECT_SELF);
|
||
|
int iTypeDispel = GetLocalInt(GetModule(),"BIODispel");
|
||
|
|
||
|
if(nCasterLevel >20 )
|
||
|
{
|
||
|
nCasterLevel = 20;
|
||
|
}
|
||
|
|
||
|
//Capture the first target object in the shape.
|
||
|
oTarget = GetEnteringObject();
|
||
|
|
||
|
if (spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, GetAreaOfEffectCreator()))
|
||
|
{
|
||
|
if (iTypeDispel)
|
||
|
spellsDispelMagic(oTarget, nCasterLevel, eVis, eImpact);
|
||
|
else
|
||
|
spellsDispelMagicMod(oTarget, nCasterLevel, eVis, eImpact);
|
||
|
}
|
||
|
|
||
|
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
||
|
// Getting rid of the integer used to hold the spells spell school
|
||
|
}
|