Improved Invisibility

Spell Description
Caster Level(s) Bard 4, Wizard/Sorcerer 4
Innate Level 4
School Illusion
Descriptor(s) Visual
Component(s) Verbal, Somatic
Range Touch
Area of Effect / Target Single
Duration 1 Turn / Level
Save Harmless
Spell Resistance No
Additional Counterspells Invisibility Purge
Dispel Yes
Description The target creature becomes invisible and impossible to detect using normal vision. After attacking or casting spells the target creature will become partially visible and detectable by enemies, but still retain a 50% cover bonus.

Spell Scripts
Main nw_s0_impinvis

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++)
Script Change Changed result when under effect of Invisibility Purge
Before Could cast Improved Inivsibility on someone with Purge effect
After Improved Invisibility will fail on someone with Purge effect
Script Change Changed result when under effect of Invisibility Sphere
Before Could cast Improved Invisibility on someone in a Invisibility Sphere
After Improved Invisibility will fail on someone in a Invisibility Sphere


Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix