mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
Re-enable spellbar and reset Discipline timer when stopping casts in EVENT_CAST_BEGIN (#1891)
This commit is contained in:
parent
898b1ea4d1
commit
85971590c8
@ -307,7 +307,12 @@ bool Mob::CastSpell(uint16 spell_id, uint16 target_id, CastingSlot slot,
|
||||
std::string export_string = fmt::format("{}", spell_id);
|
||||
if(IsClient()) {
|
||||
if (parse->EventPlayer(EVENT_CAST_BEGIN, CastToClient(), export_string, 0) != 0) {
|
||||
return false;
|
||||
if (IsDiscipline(spell_id)) {
|
||||
CastToClient()->SendDisciplineTimer(spells[spell_id].timer_id, 0);
|
||||
} else {
|
||||
CastToClient()->SendSpellBarEnable(spell_id);
|
||||
}
|
||||
return(false);
|
||||
}
|
||||
} else if(IsNPC()) {
|
||||
parse->EventNPC(EVENT_CAST_BEGIN, CastToNPC(), nullptr, export_string, 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user