Flesh to Stone

Spell Description
Caster Level(s) Wizard/Sorcerer 6
Innate Level 6
School Transmutation
Descriptor(s) Earth
Component(s) Verbal, Somatic
Range Medium
Area of Effect / Target Single
Duration Permanent*
Save Fortitude
Spell Resistance Yes
Additional Counterspell(s) Stone to Flesh
Dispel No
Description The subject and all possessions it carries turns into a mindless inert statue. Only a stone to flesh spell can restore the subject to normal.
*Note: Under Normal difficulty or easier, the duration is one round per caster level. Higher difficulty settings make the petrification permanent. As well, if the caster rests, any creature turned to stone by him will be restored, as if the stone to flesh spell has been cast upon them.

Spell Scripts
Main x0_s0_fleshsto

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