feat: allow item IDs without restriction (#18)

This commit is contained in:
Stoabrogga
2019-02-12 16:10:50 +01:00
committed by GitHub
parent 6307950ab8
commit 745cb1c639

View File

@@ -420,10 +420,13 @@ bool Transmogrification::CanTransmogrifyItemWithItem(Player* player, ItemTemplat
if (source->SubClass != target->SubClass && !IsRangedWeapon(target->Class, target->SubClass))
{
if (source->Class == ITEM_CLASS_ARMOR && !AllowMixedArmorTypes)
return false;
if (source->Class == ITEM_CLASS_WEAPON && !AllowMixedWeaponTypes)
return false;
if (!IsAllowed(source->ItemId))
{
if (source->Class == ITEM_CLASS_ARMOR && !AllowMixedArmorTypes)
return false;
if (source->Class == ITEM_CLASS_WEAPON && !AllowMixedWeaponTypes)
return false;
}
}
if (source->InventoryType != target->InventoryType)