Delayed Blast Fireball

Spell Description
Caster Level(s) Wizard/Sorcerer 7
Innate Level 7
School Evocation
Descriptor(s) Fire
Component(s) Verbal, Somatic
Range Medium
Area of Effect / Target Huge
Duration 1 Round / 3 Levels
Save Reflex 1/2
Spell Resistance Yes
Additional Counterspell(s) None
Dispel Yes
Description The caster creates a small, magical zone that can detect the passage of enemy creatures. When the field is activated, it explodes, doing 1d6 points of fire damage per caster level to all within the area of effect, to a maximum of 20d6.

Spell Scripts
Main nw_s0_delfirebal
AoE OnEnter nw_s0_delfirea
AoE Heartbeat nw_s0_delfirec

Changes/Updates for Thain
Script Change Custom GetCasterLevel function
Before Get the level of the casterclass used or item property
After Get the level of the casterclass used or item property, pluss any modifiers (Palemaster++)
Script Change Custom ResistSpell function
Before Checks for Absorbtion (Spell mantle), Immunity and SR
After Same as before, just a wrapper for easy later change
Script Change Custom GetSpellSaveDC
Before Returns Save DC of spell: 10 + Spell Level + Spell Focus
After Same as before, just a wrapper to easy add alternate DC for items and maybe more later
Script Change Dispel of AoE changed to fit description of dispel
Before Base Chance: Lesser - 25%, Dispel - 50%, Greater -75%, Mordenkainens - 100 %.
Chance modified by caster level: Base Chance + ( CLevel + CMod ) - ( 10 + CMod ) * 2
NPC caster: Modified chance + 30
Caster of spell that is being atempted to dispel: Chance = 100%
DM trying to dispel: Chance = 100%
After Dispel Roll: d20 + CLevel. Where CLevel is capped: Lesser - 5, Dispel - 10, Greater - 15, Mordenkainens - No cap
Dispel DC: 11 + CLevel of caster of spell
Script Change Added heartbeat script
Before Used old AoE Dispel function, AoE lasted out the duration
After Use new AoE Dispel DC function and need DC set. Destroy the AoE if the caster becomes invalid
Bugfix Changed duration of spell to match spell description
Before 1 Round / 2 Levels
After 1 Round / 3 Levels
Bugfix Fixed VFX and damage effect to come at the same time
Before Only damage delayed (this is done to avoid infinet loops)
After Both damage and VFX delayed


Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix