v2.3.0: fixed healing still showing status text when HP is full
This commit is contained in:
+2
-1
@@ -53,9 +53,10 @@ public class Healing extends Buff {
|
|||||||
if (target.HP == target.HT && target instanceof Hero) {
|
if (target.HP == target.HT && target instanceof Hero) {
|
||||||
((Hero) target).resting = false;
|
((Hero) target).resting = false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
target.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(healingThisTick()), FloatingText.HEALING);
|
target.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(healingThisTick()), FloatingText.HEALING);
|
||||||
|
}
|
||||||
|
|
||||||
healingLeft -= healingThisTick();
|
healingLeft -= healingThisTick();
|
||||||
|
|
||||||
if (healingLeft <= 0){
|
if (healingLeft <= 0){
|
||||||
|
|||||||
Reference in New Issue
Block a user