v0.4.0: fixed a bug where sungrass would sometimes not cancel resting when it fully heals

This commit is contained in:
Evan Debenham 2016-06-20 22:44:16 -04:00
parent 380fc0e57a
commit fedbb4044b

View File

@ -99,10 +99,9 @@ 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;
}
}
if (target.HP == target.HT && target instanceof Hero){
((Hero)target).resting = false;
}
count = 1;
} else {