2026/05/07 Update

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.
This commit is contained in:
Jaysyn904
2026-05-07 13:42:22 -04:00
parent 129d5f33b8
commit 1ea0b03976
50 changed files with 1153 additions and 887 deletions

View File

@@ -27,19 +27,34 @@ void main()
effect eVis = EffectVisualEffect(VFX_IMP_SLOW);
effect eSlow = EffectMovementSpeedDecrease(50);
effect eLink = EffectLinkEffects(eVis, eSlow);
object aoeCreator = GetAreaOfEffectCreator();
object oTarget = GetEnteringObject();
float fDelay = PRCGetRandomDelay(1.0, 2.2);
int nPenetr = SPGetPenetrAOE(GetAreaOfEffectCreator());
int nPenetr = SPGetPenetrAOE(aoeCreator);
// Check Extraordinary Spell Aim
if(GetHasFeat(FEAT_EXTRAORDINARY_SPELL_AIM, aoeCreator)
&& GetIsFriend(oTarget, aoeCreator))
{
string sTargetID = ObjectToString(oTarget);
if(!GetLocalInt(OBJECT_SELF, "ExtraordinarySpellAim_" + sTargetID))
{
if(GetIsSkillSuccessful(aoeCreator, SKILL_SPELLCRAFT, 25 + PRCGetSpellLevel(aoeCreator, SPELL_GREASE)))
{
SetLocalInt(OBJECT_SELF, "ExtraordinarySpellAim_" + sTargetID, TRUE);
return; // Target excluded
}
}
}
if(spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, GetAreaOfEffectCreator()))
if(spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, aoeCreator))
{
if(!GetHasFeat(FEAT_WOODLAND_STRIDE, oTarget) &&(GetCreatureFlag(OBJECT_SELF, CREATURE_VAR_IS_INCORPOREAL) != TRUE) )
{
//Fire cast spell at event for the target
SignalEvent(oTarget, EventSpellCastAt(GetAreaOfEffectCreator(), SPELL_GREASE));
int nDC = PRCGetSaveDC(oTarget,GetAreaOfEffectCreator());
SignalEvent(oTarget, EventSpellCastAt(aoeCreator, SPELL_GREASE));
int nDC = PRCGetSaveDC(oTarget, aoeCreator);
if(DEBUG) DoDebug("nw_s0_greasec running, SpellId: " + IntToString(PRCGetSpellId()));
if(!PRCMySavingThrow(SAVING_THROW_REFLEX, oTarget, (nDC), SAVING_THROW_TYPE_NONE, OBJECT_SELF, fDelay))
@@ -49,7 +64,6 @@ void main()
}
}
}
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
// Getting rid of the local integer storing the spellschool name
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
// Getting rid of the local integer storing the spellschool name
}