From 8ec14c341e4b4144277347e486a2349512cacb29 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 7 Aug 2019 16:25:34 -0400 Subject: [PATCH] v0.7.4b: fixed armor being incorrectly applied after recent living earth change --- .../items/wands/WandOfLivingEarth.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfLivingEarth.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfLivingEarth.java index 14ce921ae..59f1539ee 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfLivingEarth.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfLivingEarth.java @@ -222,10 +222,10 @@ public class WandOfLivingEarth extends DamageWand { private int wandLevel; private int armor; - private void addArmor( int wandLevel, int armor ){ + private void addArmor( int wandLevel, int toAdd ){ this.wandLevel = Math.max(this.wandLevel, wandLevel); - this.armor += armor; - this.armor = Math.min(armor, 2*armorToGuardian()); + armor += toAdd; + armor = Math.min(armor, 2*armorToGuardian()); } private int armorToGuardian(){