From fedbb4044b6fa88e7e28681ca34d727b5d2cab50 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 20 Jun 2016 22:44:16 -0400 Subject: [PATCH] v0.4.0: fixed a bug where sungrass would sometimes not cancel resting when it fully heals --- .../shatteredpixeldungeon/plants/Sungrass.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/plants/Sungrass.java b/src/com/shatteredpixel/shatteredpixeldungeon/plants/Sungrass.java index 25b0d8ff4..e68a55718 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/plants/Sungrass.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/plants/Sungrass.java @@ -99,10 +99,9 @@ public class Sungrass extends Plant { if (healCurr < 6) healCurr ++; target.sprite.emitter().burst(Speck.factory(Speck.HEALING), 1); - - if (target.HP == target.HT && target instanceof Hero){ - ((Hero)target).resting = false; - } + } + if (target.HP == target.HT && target instanceof Hero){ + ((Hero)target).resting = false; } count = 1; } else {