|Spell level :||Innate level: 7, Cleric: 7|
|Components :||Verbal and Somatic|
|Save :||Fortitude Partial|
|Spell resistance :||Yes|
The target creature must make a Fortitude save or die. A successful save still results in the target taking 10d6 points of divine damage.
General: The description is missing the "Death" descriptor. This is important - if a target is immune to death in any way, even the damage is resisted. The NPC AI suffers from exactly the same bug - there are two checks involved here when the AI decides if this particular spell should be cast - the first check returns if target is immune to death, the second check returns the amount of potential damage. This spell is then cast on death-immune enemies not as an instant-death spell, but as a damaging spell, because the AI fails to realize that enemies immune to death will not sustain any damage even if they fail the save (check CalculateDamageWeight in hench_i0_spells.nss). Destruction is perceived by the AI as a high-damage spell (Finger of Death is problematic in this regard as well - the AI will cast it on undead enemies and if they fail the save, they will actually take negative damage, which is a bug by itself).
Line 70: This should use the NWN2 metamagic function ApplyMetamagicVariableMods().