v0.4.2: fixed a bug where earthroot would detach incorrectly
This commit is contained in:
parent
3de9de5ce4
commit
d6cf212b74
|
@ -44,7 +44,7 @@ public class Earthroot extends Plant {
|
||||||
Char ch = Actor.findChar(pos);
|
Char ch = Actor.findChar(pos);
|
||||||
|
|
||||||
if (ch == Dungeon.hero) {
|
if (ch == Dungeon.hero) {
|
||||||
Buff.affect( ch, Armor.class ).level = ch.HT;
|
Buff.affect( ch, Armor.class ).level(ch.HT);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Dungeon.visible[pos]) {
|
if (Dungeon.visible[pos]) {
|
||||||
|
@ -103,6 +103,7 @@ public class Earthroot extends Plant {
|
||||||
public void level( int value ) {
|
public void level( int value ) {
|
||||||
if (level < value) {
|
if (level < value) {
|
||||||
level = value;
|
level = value;
|
||||||
|
pos = target.pos;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user