Inflict Serious Wounds

Spell Description
Caster Level(s) Cleric 3
Innate Level 3
School Necromancy
Descriptor(s) Negative
Component(s) Verbal, Somatic
Range Touch
Area of Effect / Target Single
Duration Instant
Save Will 1/2
Spell Resistance No
Additional Counterspells Cure Serious Wounds
Dispel No
Description If the caster succeeds in striking an opponent with a touch attack, the target suffers 3d8 points of damage, + 1 point per caster level (to a maximum of +15). Inflict spells have a reverse effect when used on undead, causing the targeted undead to take an amount of healing equal to what the spell normally damages.

Spell Scripts
Main x0_s0_inflict

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

Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix