From c277f6b50ca722eea0e20d47fd03af819f19e520 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 5 Jun 2021 20:12:29 -0400 Subject: [PATCH] v0.9.3: fixed class armor using targeting when it shouldn't --- .../shatteredpixeldungeon/items/armor/ClassArmor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/ClassArmor.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/ClassArmor.java index df4a06f4d..5dde3f5ea 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/ClassArmor.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/ClassArmor.java @@ -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();