Hospitaler had incorrect epic bonus feat progression Hospitaler had incorrect bonus feat list. Hospitaler was missing Ride from its skill list. Runecaster had incorrect epic bonus feat progression Runecaster had incorrect bonus feat list. Warmage Edge should work with magic staves. Added PRC_RETH_DEKALA_AURA_HOSTILE_ONLY switch and modified Vilefire aura to use it. Spells that use DoCone() should now respect Mastery of Shaping. Removed Hospitaler from list of classes that use the Fighter Bonus Feat list. ExtraordinarySpellAim() now handles persistent AoEs Acid Fog, Blade Barrier, Creeping Doom, Grease, Incindiary Cloud, Wall of Fire, Wall of Frost, Prismatic Wall, Prismatic Sphere, Sleet Storm and Spike Growth now respect Extraordinary Spell Aim.
84 lines
2.9 KiB
Plaintext
84 lines
2.9 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Wall of Frost: On Enter
|
|
//:: SP_WallFrostA.nss
|
|
//::
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Person within the AoE take 4d6 cold damage
|
|
per round.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
#include "prc_inc_spells"
|
|
#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();
|
|
int nDamage;
|
|
effect eDam;
|
|
object oCaster = GetAreaOfEffectCreator();
|
|
object oTarget;
|
|
//Declare and assign personal impact visual effect.
|
|
effect eVis = EffectVisualEffect(VFX_IMP_FROST_S);
|
|
int nPenetr = SPGetPenetrAOE(GetAreaOfEffectCreator());
|
|
|
|
//Capture the first target object in the shape.
|
|
oTarget = GetEnteringObject();
|
|
|
|
// Check Extraordinary Spell Aim
|
|
if(GetHasFeat(FEAT_EXTRAORDINARY_SPELL_AIM, oCaster)
|
|
&& GetIsFriend(oTarget, oCaster))
|
|
{
|
|
string sTargetID = ObjectToString(oTarget);
|
|
if(!GetLocalInt(OBJECT_SELF, "ExtraordinarySpellAim_" + sTargetID))
|
|
{
|
|
if(GetIsSkillSuccessful(oCaster, SKILL_SPELLCRAFT, 25 + PRCGetSpellLevel(oCaster, GetSpellId())))
|
|
{
|
|
SetLocalInt(OBJECT_SELF, "ExtraordinarySpellAim_" + sTargetID, TRUE);
|
|
return; // Target excluded
|
|
}
|
|
}
|
|
}
|
|
|
|
if (spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, oCaster))
|
|
{
|
|
//Fire cast spell at event for the specified target
|
|
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, GetSpellId()));
|
|
//Make SR check, and appropriate saving throw(s).
|
|
if(!PRCDoResistSpell(oCaster, oTarget,nPenetr))
|
|
{
|
|
//Roll damage.
|
|
nDamage = d6(4);
|
|
//Enter Metamagic conditions
|
|
if ((nMetaMagic & METAMAGIC_MAXIMIZE))
|
|
{
|
|
nDamage = 24;//Damage is at max
|
|
}
|
|
if ((nMetaMagic & METAMAGIC_EMPOWER))
|
|
{
|
|
nDamage = nDamage + (nDamage/2); //Damage/Healing is +50%
|
|
}
|
|
nDamage += SpellDamagePerDice(oCaster, 4);
|
|
nDamage = PRCGetReflexAdjustedDamage(nDamage, oTarget, (PRCGetSaveDC(oTarget, oCaster)), SAVING_THROW_TYPE_COLD);
|
|
if(nDamage > 0)
|
|
{
|
|
// Apply effects to the currently selected target.
|
|
eDam = PRCEffectDamage(oTarget, nDamage, ChangedElementalDamage(oCaster, DAMAGE_TYPE_COLD));
|
|
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget);
|
|
PRCBonusDamage(oTarget);
|
|
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
|
}
|
|
}
|
|
}
|
|
|
|
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
|
// Getting rid of the integer used to hold the spells spell school
|
|
}
|