Circle of Death

Spell Description
Caster Level(s) Wizard/Sorcerer 6
Innate Level 6
School Necromancy
Descriptor(s) Death
Component(s) Verbal, Somatic
Range Medium
Area of Effect / Target Large
Duration Instant
Save Fortitude negates
Spell Resistance Yes
Additional Counterspell(s) Death Ward
Dispel No
Description A wave of negative energy bursts from the target location. A number of enemy creatures with total HD equal to 1d4 per caster level must make a Fortitude save or die, beginning with those creatures with the lowest Hit Dice. Creatures with 10 or more Hit Dice are unaffected.

Spell Scripts
Main nw_s0_circdeath

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
Description Change Spell Description altered to fit script
Before 1d4 creatures per caster level, HD 9 and above unaffected
After creatures with total 1d4 HD per caster level, HD 10 and above unaffected
Description Change Area of Effect / Target altered to fit script
Before Colossal
After Large

Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix