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(){