#include "NW_I0_SPELLS" void main() { //Declare major variables object oCaster = GetAreaOfEffectCreator(); effect eVis2 = EffectVisualEffect(VFX_IMP_HOLY_AID); effect eVis = EffectVisualEffect(VFX_DUR_PROTECTION_EVIL_MINOR); effect eAttack = EffectAttackIncrease(2); effect eDamage = EffectDamageIncrease(2); effect eSaves1 = EffectSavingThrowIncrease(SAVING_THROW_WILL,2); effect eSaves2 = EffectSavingThrowIncrease(SAVING_THROW_REFLEX,2); effect eHP = EffectAbilityIncrease(ABILITY_CONSTITUTION,4); effect eLink = EffectLinkEffects(eAttack,eDamage); eLink = EffectLinkEffects(eLink,eSaves1); eLink = EffectLinkEffects(eLink,eSaves2); eLink = EffectLinkEffects(eLink,eHP); eLink = EffectLinkEffects(eLink,eVis); object oTarget = GetFirstInPersistentObject(); while(GetIsObjectValid(oTarget)) { SetLocalInt(oTarget,"TurnPenalty",1); if ( !GetLocalInt(oTarget,"DEAura") ) { int nRace = GetRacialType(oTarget); if ( nRace == RACIAL_TYPE_UNDEAD ) { ApplyEffectToObject(DURATION_TYPE_INSTANT,eVis2,oTarget); ApplyEffectToObject(DURATION_TYPE_PERMANENT,eLink,oTarget); SetLocalInt(oTarget,"DEAura",1); } } oTarget = GetNextInPersistentObject(); } }