Aura versus Alignment

Spell Description
Caster Level(s) Cleric 8
Innate Level 8
School Abjuration
Descriptor(s) Protection
Component(s) Verbal, Somantic
Range Personal
Area of Effect / Target Caster
Duration 1 Round / Level
Save None
Spell Resistance Yes
Additional Counterspell(s) None
Dispel Yes
Description When this spell is cast, the caster chooses to be protected from either good or evil. He receives a +4 deflection bonus to Armor Class, immunity to mind-affecting spells and spell-like abilities used by creatures of the chosen alignment, and spell resistance 25 against spells cast by creatures of the chosen alignment. Creatures of the chosen alignment also take 6 + 1d8 damage each time they successfully strike the Cleric.

Spell Scripts
Vs. evil nw_s0_holyaura
Vs. good nw_s0_unhaura

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 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