v2.1.3: fixed weaker healing effects overriding stronger ones

This commit is contained in:
Evan Debenham
2023-06-19 16:11:17 -04:00
parent 7062eab3f3
commit cebe05d089
@@ -72,9 +72,11 @@ public class Healing extends Buff {
} }
public void setHeal(int amount, float percentPerTick, int flatPerTick){ public void setHeal(int amount, float percentPerTick, int flatPerTick){
healingLeft = amount; if (amount > healingLeft) {
percentHealPerTick = percentPerTick; healingLeft = amount;
flatHealPerTick = flatPerTick; percentHealPerTick = percentPerTick;
flatHealPerTick = flatPerTick;
}
} }
public void increaseHeal( int amount ){ public void increaseHeal( int amount ){