v0.4.0: fixed a bug where sungrass would sometimes not cancel resting when it fully heals
This commit is contained in:
parent
380fc0e57a
commit
fedbb4044b
|
@ -99,10 +99,9 @@ public class Sungrass extends Plant {
|
||||||
if (healCurr < 6)
|
if (healCurr < 6)
|
||||||
healCurr ++;
|
healCurr ++;
|
||||||
target.sprite.emitter().burst(Speck.factory(Speck.HEALING), 1);
|
target.sprite.emitter().burst(Speck.factory(Speck.HEALING), 1);
|
||||||
|
}
|
||||||
if (target.HP == target.HT && target instanceof Hero){
|
if (target.HP == target.HT && target instanceof Hero){
|
||||||
((Hero)target).resting = false;
|
((Hero)target).resting = false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
count = 1;
|
count = 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user