Gedlee's Electric Loop

Spell Description
Caster Level(s) Wizards/Sorcerer 2
Innate Level 2
School Evocation
Descriptor(s) Electrical
Component(s) Verbal, Somatic
Range Short
Area of Effect / Target Small
Duration Instantaneous
Save Reflex 1/2 + Special (See Below)
Spell Resistance Yes
Additional Counterspells None
Dispel No
Description You create a small stroke of lightning that cycles through all creatures in the area of effect. The spell deals 1d6 points of damage per 2 caster levels (maximum 5d6). Those who fail their Reflex saves must succeed at a Will save or be stunned for 1 round.

Spell Scripts
Main x2_s0_elecloop

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