v0.6.1: stepping on plants now interrupts the hero

This commit is contained in:
Evan Debenham 2017-06-22 17:33:48 -04:00
parent 1757c2ae7d
commit 5d4b0cbb2a

View File

@ -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();