v0.4.2: fixed a bug where earthroot would detach incorrectly

This commit is contained in:
Evan Debenham 2016-08-18 22:54:17 -04:00
parent 3de9de5ce4
commit d6cf212b74

View File

@ -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;
}
}