mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
Fix: dangling else (#16)
This commit is contained in:
@@ -463,11 +463,15 @@ bool Transmogrification::SuitableForTransmogrification(Player* player, ItemTempl
|
||||
if (proto->SubClass > 0 && player->GetSkillValue(proto->GetSkill()) == 0)
|
||||
{
|
||||
if (proto->Class == ITEM_CLASS_ARMOR)
|
||||
{
|
||||
if (!AllowMixedArmorTypes)
|
||||
return false;
|
||||
}
|
||||
else if (proto->Class == ITEM_CLASS_WEAPON)
|
||||
{
|
||||
if (!AllowMixedWeaponTypes)
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user