Circle of Doom

Spell Description
Caster Level(s) Cleric 5
Innate Level 5
School Necromancy
Descriptor(s) Negative
Component(s) Verbal, Somatic
Range Medium
Area of Effect / Target Medium
Duration Instant
Save Fortitude 1/2
Spell Resistance Yes
Additional Counterspell(s) Healing Circle
Dispel No
Description All enemies within the area of effect are struck with negative energy that causes 1d8 points of damage, +1 point per caster level (to a max of +20). Negative energy spells have a reverse effect on undead, healing them instead of harming them.

Spell Scripts
Main nw_s0_circdoom

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 Added info about cap implemented in script
Before Not mentioned in description
After Damage cap listed in Spell Description
Description Change Area of Effect / Target altered to fit script
Before Huge
After Medium
Bugfix Fixed effect of metamagic Empower
Before Empower damage: (1d8+CLevel) * 1.5 + CLevel
After Empower damage: 1d8 * 1.5 + CLevel

Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix