From cebe05d0890924f88a9cc086d5a6bf1ba74293a4 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 19 Jun 2023 16:11:17 -0400 Subject: [PATCH] v2.1.3: fixed weaker healing effects overriding stronger ones --- .../shatteredpixeldungeon/actors/buffs/Healing.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Healing.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Healing.java index a9cfe26fe..c1e6ee687 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Healing.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Healing.java @@ -72,9 +72,11 @@ public class Healing extends Buff { } public void setHeal(int amount, float percentPerTick, int flatPerTick){ - healingLeft = amount; - percentHealPerTick = percentPerTick; - flatHealPerTick = flatPerTick; + if (amount > healingLeft) { + healingLeft = amount; + percentHealPerTick = percentPerTick; + flatHealPerTick = flatPerTick; + } } public void increaseHeal( int amount ){