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,11 +99,10 @@ public class Sungrass extends Plant {
|
|||
if (healCurr < 6)
|
||||
healCurr ++;
|
||||
target.sprite.emitter().burst(Speck.factory(Speck.HEALING), 1);
|
||||
|
||||
}
|
||||
if (target.HP == target.HT && target instanceof Hero){
|
||||
((Hero)target).resting = false;
|
||||
}
|
||||
}
|
||||
count = 1;
|
||||
} else {
|
||||
count++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user