Core/Items: Fixed transmogrifying chest pieces (robe/chest have different inventoryType)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user