v0.4.2: fixed a bug where earthroot would detach incorrectly
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user