v3.1.0: fixed cases of metamorphed holy intuition deleting armor
This commit is contained in:
@@ -228,8 +228,6 @@ public class Armor extends EquipableItem {
|
||||
|
||||
@Override
|
||||
public boolean doEquip( Hero hero ) {
|
||||
|
||||
detach(hero.belongings.backpack);
|
||||
|
||||
// 15/25% chance
|
||||
if (hero.heroClass != HeroClass.CLERIC && hero.hasTalent(Talent.HOLY_INTUITION)
|
||||
@@ -240,6 +238,8 @@ public class Armor extends EquipableItem {
|
||||
return false;
|
||||
}
|
||||
|
||||
detach(hero.belongings.backpack);
|
||||
|
||||
Armor oldArmor = hero.belongings.armor;
|
||||
if (hero.belongings.armor == null || hero.belongings.armor.doUnequip( hero, true, false )) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user