v0.6.1: stepping on plants now interrupts the hero
This commit is contained in:
parent
1757c2ae7d
commit
5d4b0cbb2a
|
@ -57,9 +57,12 @@ public abstract class Plant implements Bundlable {
|
|||
|
||||
Char ch = Actor.findChar(pos);
|
||||
|
||||
if (ch instanceof Hero && ((Hero)ch).subClass == HeroSubClass.WARDEN) {
|
||||
if (ch instanceof Hero){
|
||||
((Hero) ch).interrupt();
|
||||
if (((Hero)ch).subClass == HeroSubClass.WARDEN) {
|
||||
Buff.affect(ch, Barkskin.class).level(ch.HT / 3);
|
||||
}
|
||||
}
|
||||
|
||||
wither();
|
||||
activate();
|
||||
|
|
Loading…
Reference in New Issue
Block a user