From fc48a109fd271331d25edc9c54bdb64ca0551e32 Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Sun, 16 Nov 2014 05:46:46 -0500 Subject: [PATCH] SUB EVENT CAST ON will now be parsed in player.pl (note: exports $spell_id) --- zone/spells.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zone/spells.cpp b/zone/spells.cpp index 52fabb6ff..315fe8712 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -3339,6 +3339,12 @@ bool Mob::SpellOnTarget(uint16 spell_id, Mob* spelltar, bool reflect, bool use_r sprintf(temp1, "%d", spell_id); parse->EventNPC(EVENT_CAST_ON, spelltar->CastToNPC(), this, temp1, 0); } + else if (spelltar->IsClient()) + { + char temp1[100]; + sprintf(temp1, "%d", spell_id); + parse->EventPlayer(EVENT_CAST_ON, spelltar->CastToClient(),temp1, 0); + } mod_spell_cast(spell_id, spelltar, reflect, use_resist_adjust, resist_adjust, isproc);