From d6cf212b74f9df683662ae123ecdde81c29a565e Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 18 Aug 2016 22:54:17 -0400 Subject: [PATCH] v0.4.2: fixed a bug where earthroot would detach incorrectly --- .../shatteredpixel/shatteredpixeldungeon/plants/Earthroot.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Earthroot.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Earthroot.java index 5ec4b5773..39e864df2 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Earthroot.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Earthroot.java @@ -44,7 +44,7 @@ public class Earthroot extends Plant { Char ch = Actor.findChar(pos); if (ch == Dungeon.hero) { - Buff.affect( ch, Armor.class ).level = ch.HT; + Buff.affect( ch, Armor.class ).level(ch.HT); } if (Dungeon.visible[pos]) { @@ -103,6 +103,7 @@ public class Earthroot extends Plant { public void level( int value ) { if (level < value) { level = value; + pos = target.pos; } }