v0.6.2: fixed corruption overriding positive buffs and soul mark
This commit is contained in:
parent
b5a0f3759b
commit
da159b41ad
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user