Color Spray

Spell Description
Caster Level(s) Wizard/Sorcerer 1
Innate Level 1
School Illusion
Descriptor(s) Mind-Affecting
Component(s) Verbal, Somatic
Range 30 ft.
Area of Effect / Target Spell Cone
Duration Instant
Save Will negates
Spell Resistance Yes
Additional Counterspell(s) None
Dispel No
Description Color Spray sends forth a dazzling array of lights to confound all creatures within the area of effect. Its effects vary according to the Hit Dice of the affected creatures:
  • 1-2 HD Sleep for 3 + 1d4 rounds
  • 3-4 HD Blinded for 2 + 1d4 rounds
  • >4 HD Stunned for 1 + 1d4 round

Spell Scripts
Main nw_s0_colspray

Changes/Updates for Thain
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++)
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
Bugfix Fixed Metamagic EMPOWER effect on duration
Before 1-2 HD: 3 + 1d4, EMPOWER: x1.5
3-4 HD: 2 + 1d4, EMPOWER: (3 + 1d4) x 1.5 - 1
>4 HD: 1 + 1d4, EMPOWER: (3 + 1d4) x 1.5 - 2
After 1-2 HD: 3 + 1d4, EMPOWER: x1.5
3-4 HD: 2 + 1d4, EMPOWER: x1.5
>4 HD: 1 + 1d4, EMPOWER: x1.5

Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix