v0.6.2: fixed corruption overriding positive buffs and soul mark

This commit is contained in:
Evan Debenham 2017-10-24 22:04:49 -04:00
parent b5a0f3759b
commit da159b41ad

View File

@ -208,7 +208,10 @@ public class WandOfCorruption extends Wand {
!enemy.immunities().contains(Corruption.class)){ !enemy.immunities().contains(Corruption.class)){
enemy.HP = enemy.HT; enemy.HP = enemy.HT;
for (Buff buff : enemy.buffs()) { for (Buff buff : enemy.buffs()) {
buff.detach(); if (buff.type == Buff.buffType.NEGATIVE
&& !(buff instanceof SoulMark)) {
buff.detach();
}
} }
Buff.affect(enemy, Corruption.class); Buff.affect(enemy, Corruption.class);