Skip to content

Commit

Permalink
Fixed a bug with transmogging one-hand over main-hand/off-hand and vi…
Browse files Browse the repository at this point in the history
…ce versa
  • Loading branch information
Ceikry committed Aug 17, 2024
1 parent 8145ece commit 8a04c0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Transmogrification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a04c0d

Please sign in to comment.