From 9836b5cf67038c887325692b4f1d6d4a3d2c98b7 Mon Sep 17 00:00:00 2001 From: Natedog2012 Date: Sun, 12 Feb 2023 22:49:59 -0600 Subject: [PATCH] [Bug Fix] Fix for interrupting item casts to no longer lock the client if cast time of item greater than 0 (#2921) --- zone/client_packet.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index bf330d655..5127e228f 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -4335,6 +4335,7 @@ void Client::Handle_OP_CastSpell(const EQApplicationPacket *app) } else { InterruptSpell(castspell->spell_id); + SendSpellBarEnable(castspell->spell_id); return; } } @@ -4373,6 +4374,7 @@ void Client::Handle_OP_CastSpell(const EQApplicationPacket *app) } else { InterruptSpell(castspell->spell_id); + SendSpellBarEnable(castspell->spell_id); return; } } @@ -9205,6 +9207,10 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app) else { CastSpell(item->Click.Effect, target_id, CastingSlot::Item, item->CastTime, 0, 0, slot_id); } + } else { + InterruptSpell(item->Click.Effect); + SendSpellBarEnable(item->Click.Effect); + return; } } else @@ -9273,6 +9279,10 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app) else { CastSpell(augitem->Click.Effect, target_id, CastingSlot::Item, augitem->CastTime, 0, 0, slot_id); } + } else { + InterruptSpell(item->Click.Effect); + SendSpellBarEnable(item->Click.Effect); + return; } } else