55 if (player.locking.locked(
PacketType.USE_MAGIC))
58 final int slot = packet.readShort();
60 final int childId = packet.readShort();
63 if (player.positionChange) {
67 final Item item = player.inventory.get(slot);
69 if (item ==
null || item.getId() != itemId) {
74 player.message(
"[MagicOnItemPacket] spell=" + spell +
" itemId=" + itemId +
" slot=" + slot +
" childId=" + childId);
85 player.spellCasting.enchantItem(itemId, spell);
89 player.spellCasting.cast(
new LowAlchemy(), item);
97 player.spellCasting.cast(
new SuperHeat(), item);