mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 18:30:39 +00:00
Added signal check for player EVENT_CAST_BEGIN
This commit is contained in:
+2
-1
@@ -298,7 +298,8 @@ bool Mob::CastSpell(uint16 spell_id, uint16 target_id, CastingSlot slot,
|
|||||||
if(IsClient()) {
|
if(IsClient()) {
|
||||||
char temp[64];
|
char temp[64];
|
||||||
sprintf(temp, "%d", spell_id);
|
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()) {
|
} else if(IsNPC()) {
|
||||||
char temp[64];
|
char temp[64];
|
||||||
sprintf(temp, "%d", spell_id);
|
sprintf(temp, "%d", spell_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user