mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
Send the BEGIN_TO_GLOW message after OP_BeginCast when casting a clicky
This commit is contained in:
parent
b0d85e3558
commit
96264cb688
@ -489,6 +489,12 @@ bool Mob::DoCastSpell(uint16 spell_id, uint16 target_id, uint16 slot,
|
||||
safe_delete(outapp);
|
||||
outapp = nullptr;
|
||||
|
||||
if (IsClient() && slot == USE_ITEM_SPELL_SLOT &&item_slot != 0xFFFFFFFF) {
|
||||
auto item = CastToClient()->GetInv().GetItem(item_slot);
|
||||
if (item && item->GetItem())
|
||||
Message_StringID(MT_Spells, BEGINS_TO_GLOW, item->GetItem()->Name);
|
||||
}
|
||||
|
||||
if (!DoCastingChecks()) {
|
||||
InterruptSpell();
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user