mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Added signal check for player EVENT_CAST_BEGIN
This commit is contained in:
parent
8df7bcc2c8
commit
19c92173d2
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user