From d2f3c6a879fc54781ad3d46d5175c880cc63c6e9 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 29 Aug 2024 20:49:42 -0500 Subject: [PATCH] potions and scrolls no longer count as casting a spell --- src/engine/net/client/handlers/ObjectActionMsgHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/ObjectActionMsgHandler.java b/src/engine/net/client/handlers/ObjectActionMsgHandler.java index 661ef165..12e4660e 100644 --- a/src/engine/net/client/handlers/ObjectActionMsgHandler.java +++ b/src/engine/net/client/handlers/ObjectActionMsgHandler.java @@ -528,7 +528,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler { dispatch = Dispatch.borrow(player, msg); DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY); - player.cancelOnSpell(); + if(!item.getItemBase().getType().equals(ItemType.POTION) && !item.getItemBase().getType().equals(ItemType.SCROLL)) { + player.cancelOnSpell(); + } break; default: //shouldn't be here, consume item dispatch = Dispatch.borrow(player, msg);