Melf's Acid Arrow

Spell Description
Caster Level(s) Wizard / Sorcerer 2
Innate Level 2
School Conjuration
Descriptor(s) Acid
Component(s) Verbal, Somatic
Range Long
Area of Effect / Target Single
Duration 1 Round, + 1 Round / 3 Levels
Save None
Spell Resistance Yes
Additional Counterspells None
Dispel No
Description The caster targets a single creature with an acid bolt. The initial damage from the spell is 3d6, +1d6 every round until the spell expires.

Spell Scripts
Main nw_s0_acidarrow

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 ApplyEffectToObject function
Before Adds a given effect to object
After Same as before, but saves some variables. This is to fix the Dispel spells (Palemaster++)

Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix