From 0c06bd0719504aa4025fd98d172d0253b35caf10 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 8 Sep 2014 09:35:26 -0400 Subject: [PATCH] V0.2.0: Corrected a logic flaw in earthroot buff --- .../shatteredpixel/shatteredpixeldungeon/plants/Earthroot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/plants/Earthroot.java b/src/com/shatteredpixel/shatteredpixeldungeon/plants/Earthroot.java index 6d188c4d1..dbaa065f0 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/plants/Earthroot.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/plants/Earthroot.java @@ -99,7 +99,7 @@ public class Earthroot extends Plant { } public int absorb( int damage ) { - if (damage*2 >= level) { + if (level >= damage-damage/2) { detach(); return damage - level; } else {