void main() { object oPC = GetLastHostileActor(); if (!GetIsPC(oPC)) return; if (GetTag(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC)) != "EuryalesDestiny") return; effect eEffect; eEffect = EffectDamage(500, DAMAGE_TYPE_FIRE, DAMAGE_POWER_NORMAL); ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, GetObjectByTag("Euryales")); object oTarget; oTarget = GetObjectByTag("Euryales"); //Visual effects can't be applied to waypoints, so if it is a WP //apply to the WP's location instead int nInt; nInt = GetObjectType(oTarget); if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_IMP_FLAME_S), oTarget); else ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_IMP_FLAME_S), GetLocation(oTarget)); }