//:://///////////////////////////////////////////// //:: Cure Light Wounds //:: NW_S0_CurLgtW //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /* // When laying your hand upon a living creature, // you channel positive energy that cures 1d8 points // of damage plus 1 point per caster level (up to +5). // Since undead are powered by negative energy, this // spell inflicts damage on them instead of curing // their wounds. An undead creature can attempt a // Will save to take half damage. */ //::////////////////////////////////////////////// //:: Created By: Brennon Holmes //:: Created On: Oct 12, 2000 //::////////////////////////////////////////////// //:: Update Pass By: Preston W, On: July 26, 2001 #include "NW_I0_SPELLS" #include "hos_alignment" void main() { object oMe=OBJECT_SELF; object oTarg=GetSpellTargetObject(); effect eDmg=EffectDamage(d8()); if (GetLocalString(oMe,"sTeamID")!=GetLocalString(oTarg,"sTeamID")&&GetRacialType(oTarg)!=RACIAL_TYPE_UNDEAD&&GetMaster(oTarg)!=oMe) AdjustAlignmentPartyProtected(oMe,ALIGNMENT_GOOD,1); if (GetLocalInt(oTarg,"nIsVampire")!=TRUE&&GetRacialType(oTarg)!=RACIAL_TYPE_UNDEAD&&!GetLocalInt(oTarg,"bUndead")) spellsCure(d8(), 5, 8, VFX_IMP_SUNSTRIKE, VFX_IMP_HEALING_S, GetSpellId()); else ApplyEffectToObject(DURATION_TYPE_INSTANT,eDmg,oTarg,1.0); }