From aeb53585d1bfb6fe32067ab2c8bd6ba16e365e35 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 30 Sep 2017 15:31:59 -0400 Subject: [PATCH] v0.6.2: bugfixes to toxic and fire imbue buffs --- .../shatteredpixeldungeon/actors/buffs/FireImbue.java | 6 +++--- .../shatteredpixeldungeon/actors/buffs/ToxicImbue.java | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/FireImbue.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/FireImbue.java index cdf0b25be..ea62286a2 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/FireImbue.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/FireImbue.java @@ -66,10 +66,10 @@ public class FireImbue extends Buff { spend(TICK); left -= TICK; - if (left < 5){ - BuffIndicator.refreshHero(); - } else if (left <= 0) { + if (left <= 0){ detach(); + } else if (left < 5){ + BuffIndicator.refreshHero(); } return true; diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ToxicImbue.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ToxicImbue.java index bc66537e2..f170d89c4 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ToxicImbue.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ToxicImbue.java @@ -61,8 +61,11 @@ public class ToxicImbue extends Buff { spend(TICK); left -= TICK; - if (left <= 0) + if (left <= 0){ detach(); + } else if (left < 5){ + BuffIndicator.refreshHero(); + } return true; }