From 745cb1c639b4cc789bc799bd24a11205a3483a42 Mon Sep 17 00:00:00 2001 From: Stoabrogga <38475780+Stoabrogga@users.noreply.github.com> Date: Tue, 12 Feb 2019 16:10:50 +0100 Subject: [PATCH] feat: allow item IDs without restriction (#18) --- src/Transmogrification.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Transmogrification.cpp b/src/Transmogrification.cpp index 95b0a0f..679486f 100644 --- a/src/Transmogrification.cpp +++ b/src/Transmogrification.cpp @@ -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)