mirror of
https://github.com/araxiaonline/mod-transmog.git
synced 2026-06-13 02:32:22 -04:00
Fixed a bug with transmogging one-hand over main-hand/off-hand and vice versa (#163)
This commit is contained in:
@@ -717,6 +717,12 @@ bool Transmogrification::IsInvTypeMismatchAllowed(const ItemTemplate *source, co
|
||||
return true;
|
||||
if (sourceType == INVTYPE_WEAPONMAINHAND || sourceType == INVTYPE_WEAPONOFFHAND)
|
||||
return (AllowMixedWeaponHandedness || AllowMixedWeaponTypes == MIXED_WEAPONS_LOOSE);
|
||||
if (sourceType == INVTYPE_WEAPON)
|
||||
return true;
|
||||
}
|
||||
else if (targetType == INVTYPE_WEAPON)
|
||||
{
|
||||
return sourceType == INVTYPE_WEAPONMAINHAND || (AllowMixedWeaponTypes == MIXED_WEAPONS_LOOSE && sourceType == INVTYPE_WEAPONOFFHAND);
|
||||
}
|
||||
}
|
||||
else if (targetClass == ITEM_CLASS_ARMOR)
|
||||
|
||||
Reference in New Issue
Block a user