From da159b41ad51114de5ae8c495b2dbe5dd7aef12a Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 24 Oct 2017 22:04:49 -0400 Subject: [PATCH] v0.6.2: fixed corruption overriding positive buffs and soul mark --- .../shatteredpixeldungeon/items/wands/WandOfCorruption.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfCorruption.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfCorruption.java index d5f0838ce..84f580dbd 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfCorruption.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfCorruption.java @@ -208,7 +208,10 @@ public class WandOfCorruption extends Wand { !enemy.immunities().contains(Corruption.class)){ enemy.HP = enemy.HT; for (Buff buff : enemy.buffs()) { - buff.detach(); + if (buff.type == Buff.buffType.NEGATIVE + && !(buff instanceof SoulMark)) { + buff.detach(); + } } Buff.affect(enemy, Corruption.class);