From 43bae31ff835fb0e880ff168acb0de716244d881 Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 16 Aug 2012 20:11:30 +0200 Subject: Core/Items: Fixed transmogrifying chest pieces (robe/chest have different inventoryType) --- src/server/game/Entities/Item/Item.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Entities/Item/Item.cpp b/src/server/game/Entities/Item/Item.cpp index fc8bcf0cbae..4d50f9375f1 100755 --- a/src/server/game/Entities/Item/Item.cpp +++ b/src/server/game/Entities/Item/Item.cpp @@ -1299,7 +1299,8 @@ bool Item::CanTransmogrifyItemWithItem(Item const* transmogrified, Item const* t return false; if (proto1->InventoryType != proto2->InventoryType && - (proto1->Class != ITEM_CLASS_WEAPON || (proto2->InventoryType != INVTYPE_WEAPONMAINHAND && proto2->InventoryType != INVTYPE_WEAPONOFFHAND))) + (proto1->Class != ITEM_CLASS_WEAPON || (proto2->InventoryType != INVTYPE_WEAPONMAINHAND && proto2->InventoryType != INVTYPE_WEAPONOFFHAND)) && + (proto1->Class != ITEM_CLASS_ARMOR || (proto1->InventoryType != INVTYPE_CHEST && proto2->InventoryType != INVTYPE_ROBE && proto1->InventoryType != INVTYPE_ROBE && proto2->InventoryType != INVTYPE_CHEST))) return false; return true; -- cgit v1.2.3