Darkness

Spell Description
Caster Level(s) Bard 2, Cleric 2, Wizard/Sorcerer 2
Innate Level 2
School Evocation
Descriptor(s) Darkness
Component(s) Verbal
Range Long
Area of Effect / Target Huge
Duration 1 Round / Level
Save None
Spell Resistance Yes
Additional Counterspell(s) Light
Dispel Yes
Description All creatures within the area of effect are shrouded in a haze of darkness which can only be pierced using Ultravision.

Spell Scripts
Main nw_s0_darkness
AoE OnEnter nw_s0_darknessa
AoE OnExit nw_s0_darknessb

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 Dispel of AoE changed to fit description of dispel
Before Base Chance: Lesser - 25%, Dispel - 50%, Greater -75%, Mordenkainens - 100 %.
Chance modified by caster level: Base Chance + ( CLevel + CMod ) - ( 10 + CMod ) * 2
NPC caster: Modified chance + 30
Caster of spell that is being atempted to dispel: Chance = 100%
DM trying to dispel: Chance = 100%
After Dispel Roll: d20 + CLevel. Where CLevel is capped: Lesser - 5, Dispel - 10, Greater - 15, Mordenkainens - No cap
Dispel DC: 11 + CLevel of caster of spell
Script Change Added effect when targeting creature
Before No extra effect when targeting creature
After Dispel Light or Continual Flame effect on target creature
Bugfix Updated to match spell description
Before Could only resist spell if you where immune and did not have a spell mantle cast
After SR, immunity and spell mantles protects against the spell


Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix