potions and scrolls no longer count as casting a spell
This commit is contained in:
@@ -528,7 +528,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
|
|||||||
|
|
||||||
dispatch = Dispatch.borrow(player, msg);
|
dispatch = Dispatch.borrow(player, msg);
|
||||||
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);
|
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);
|
||||||
player.cancelOnSpell();
|
if(!item.getItemBase().getType().equals(ItemType.POTION) && !item.getItemBase().getType().equals(ItemType.SCROLL)) {
|
||||||
|
player.cancelOnSpell();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default: //shouldn't be here, consume item
|
default: //shouldn't be here, consume item
|
||||||
dispatch = Dispatch.borrow(player, msg);
|
dispatch = Dispatch.borrow(player, msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user