From 19c92173d2b9f1b905849f80c3558dcf50b1ec72 Mon Sep 17 00:00:00 2001 From: Uleat Date: Thu, 8 Aug 2019 20:38:24 -0400 Subject: [PATCH] Added signal check for player EVENT_CAST_BEGIN --- zone/spells.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index 8b1a08d19..fa09727a2 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -298,7 +298,8 @@ bool Mob::CastSpell(uint16 spell_id, uint16 target_id, CastingSlot slot, if(IsClient()) { char temp[64]; sprintf(temp, "%d", spell_id); - parse->EventPlayer(EVENT_CAST_BEGIN, CastToClient(), temp, 0); + if (parse->EventPlayer(EVENT_CAST_BEGIN, CastToClient(), temp, 0) != 0) + return false; } else if(IsNPC()) { char temp[64]; sprintf(temp, "%d", spell_id);