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 39e864df2..ce79b581e 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Earthroot.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Earthroot.java @@ -103,8 +103,8 @@ public class Earthroot extends Plant { public void level( int value ) { if (level < value) { level = value; - pos = target.pos; } + pos = target.pos; } @Override diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Sungrass.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Sungrass.java index e68a55718..12f8bc10a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Sungrass.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Sungrass.java @@ -45,7 +45,7 @@ public class Sungrass extends Plant { Char ch = Actor.findChar(pos); if (ch == Dungeon.hero) { - Buff.affect( ch, Health.class ).level = ch.HT; + Buff.affect( ch, Health.class ).boost(ch.HT); } if (Dungeon.visible[pos]) { @@ -77,12 +77,6 @@ public class Sungrass extends Plant { type = buffType.POSITIVE; } - @Override - public boolean attachTo( Char target ) { - pos = target.pos; - return super.attachTo( target ); - } - @Override public boolean act() { if (target.pos != pos) { @@ -122,6 +116,7 @@ public class Sungrass extends Plant { public void boost( int amount ){ level += amount; + pos = target.pos; } @Override