Commit de0c702a authored by Kenix Whisperwind's avatar Kenix Whisperwind

Merge branch '2.0.0' of gitlab.openrsc.com:open-rsc/Game into 2.0.0

parents 38260d19 0ac3fea7
......@@ -702,12 +702,12 @@ public class SpellHandler implements PacketHandler {
player.message("This spell can only be used on unenchanted diamond " + (Server.getServer().getConfig().WANT_EQUIPMENT_TAB ? "rings and amulets" : "amulets"));
break;
case 42: // Enchant lvl-5 dragonstone amulet
if (affectedItem.getID() == com.openrsc.server.constants.ItemId.DRAGONSTONE_AMULET.id()
if (affectedItem.getID() == com.openrsc.server.constants.ItemId.UNENCHANTED_DRAGONSTONE_AMULET.id()
|| (Server.getServer().getConfig().WANT_EQUIPMENT_TAB && affectedItem.getID() == com.openrsc.server.constants.ItemId.DRAGONSTONE_RING.id())) {
int itemID = 0;
switch(com.openrsc.server.constants.ItemId.getById(affectedItem.getID())) {
case DRAGONSTONE_AMULET:
itemID = com.openrsc.server.constants.ItemId.CHARGED_DRAGONSTONE_AMULET.id();
case UNENCHANTED_DRAGONSTONE_AMULET:
itemID = com.openrsc.server.constants.ItemId.DRAGONSTONE_AMULET.id();
break;
case DRAGONSTONE_NECKLACE:
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment