v2.0.0: Healing no longer stops resting when HP is already full
This commit is contained in:
@@ -46,11 +46,13 @@ public class Healing extends Buff {
|
|||||||
@Override
|
@Override
|
||||||
public boolean act(){
|
public boolean act(){
|
||||||
|
|
||||||
|
if (target.HP < target.HT) {
|
||||||
target.HP = Math.min(target.HT, target.HP + healingThisTick());
|
target.HP = Math.min(target.HT, target.HP + healingThisTick());
|
||||||
|
|
||||||
if (target.HP == target.HT && target instanceof Hero) {
|
if (target.HP == target.HT && target instanceof Hero) {
|
||||||
((Hero) target).resting = false;
|
((Hero) target).resting = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
healingLeft -= healingThisTick();
|
healingLeft -= healingThisTick();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user