diff options
author | Shauren <shauren.trinity@gmail.com> | 2012-08-16 20:11:30 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2012-08-16 20:11:30 +0200 |
commit | 43bae31ff835fb0e880ff168acb0de716244d881 (patch) | |
tree | bcf5ed2969d3f29e6dd3838304e00b179e3e6a8c /src | |
parent | 69469d52956dc8cf38c3b9827be087232f361009 (diff) |
Core/Items: Fixed transmogrifying chest pieces (robe/chest have different inventoryType)
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/Item/Item.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |