Infestation of Maggots

Spell Description
Caster Level(s) Druid 3
Innate Level 3
School Necromancy
Descriptor(s) Disease
Component(s) Verbal, Somatic
Range Touch
Area of Effect / Target Creature touched
Duration 1 round / 2 levels
Save Fortitude negates
Spell Resistance Yes
Additional Counterspells Remove Disease, Heal
Dispel Yes
Description With but a touch, you infest a target with maggot-like creatures. They deal 1d4 points of temporary Constitution damage each round. Each round the subject makes a new Fortitude save. The spell ends if the target succeeds at its saving throw.

Spell Scripts
Main x2_s0_infestmag

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
Bugfix Changed duration to match description
Before 10 + Caster Level Rounds
After 1 Round / 2 Caster Level

Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix