Fix: dangling else (#16)

This commit is contained in:
Stoabrogga
2019-01-30 14:18:25 +01:00
committed by GitHub
parent 9adab60983
commit f04d7ce58c

View File

@@ -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;
}