From 5d4b0cbb2a216947da3baf6ec27886358e4796f5 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 22 Jun 2017 17:33:48 -0400 Subject: [PATCH] v0.6.1: stepping on plants now interrupts the hero --- .../shatteredpixel/shatteredpixeldungeon/plants/Plant.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java index e36b20a57..78b1d32e9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java @@ -57,8 +57,11 @@ public abstract class Plant implements Bundlable { Char ch = Actor.findChar(pos); - if (ch instanceof Hero && ((Hero)ch).subClass == HeroSubClass.WARDEN) { - Buff.affect( ch, Barkskin.class ).level( ch.HT / 3 ); + if (ch instanceof Hero){ + ((Hero) ch).interrupt(); + if (((Hero)ch).subClass == HeroSubClass.WARDEN) { + Buff.affect(ch, Barkskin.class).level(ch.HT / 3); + } } wither();