v0.9.3: fixed class armor using targeting when it shouldn't

This commit is contained in:
Evan Debenham 2021-06-05 20:12:29 -04:00
parent 332ab2a6fb
commit c277f6b50c

View File

@ -167,8 +167,10 @@ abstract public class ClassArmor extends Armor {
if (hero.armorAbility == null){
GameScene.show(new WndChooseAbility(null, this, hero));
} else if (!isEquipped( hero )) {
usesTargeting = false;
GLog.w( Messages.get(this, "not_equipped") );
} else if (charge < hero.armorAbility.chargeUse(hero)) {
usesTargeting = false;
GLog.w( Messages.get(this, "low_charge") );
} else {
usesTargeting = hero.armorAbility.useTargeting();