Browse Source

potions and scrolls no longer count as casting a spell

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
d2f3c6a879
  1. 4
      src/engine/net/client/handlers/ObjectActionMsgHandler.java

4
src/engine/net/client/handlers/ObjectActionMsgHandler.java

@ -528,7 +528,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler { @@ -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);

Loading…
Cancel
Save