mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
feat: allow item IDs without restriction (#18)
This commit is contained in:
@@ -420,10 +420,13 @@ bool Transmogrification::CanTransmogrifyItemWithItem(Player* player, ItemTemplat
|
|||||||
|
|
||||||
if (source->SubClass != target->SubClass && !IsRangedWeapon(target->Class, target->SubClass))
|
if (source->SubClass != target->SubClass && !IsRangedWeapon(target->Class, target->SubClass))
|
||||||
{
|
{
|
||||||
if (source->Class == ITEM_CLASS_ARMOR && !AllowMixedArmorTypes)
|
if (!IsAllowed(source->ItemId))
|
||||||
return false;
|
{
|
||||||
if (source->Class == ITEM_CLASS_WEAPON && !AllowMixedWeaponTypes)
|
if (source->Class == ITEM_CLASS_ARMOR && !AllowMixedArmorTypes)
|
||||||
return false;
|
return false;
|
||||||
|
if (source->Class == ITEM_CLASS_WEAPON && !AllowMixedWeaponTypes)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (source->InventoryType != target->InventoryType)
|
if (source->InventoryType != target->InventoryType)
|
||||||
|
|||||||
Reference in New Issue
Block a user