v0.6.2: fixed corruption overriding positive buffs and soul mark
This commit is contained in:
+3
@@ -208,8 +208,11 @@ 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()) {
|
||||||
|
if (buff.type == Buff.buffType.NEGATIVE
|
||||||
|
&& !(buff instanceof SoulMark)) {
|
||||||
buff.detach();
|
buff.detach();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Buff.affect(enemy, Corruption.class);
|
Buff.affect(enemy, Corruption.class);
|
||||||
|
|
||||||
Statistics.enemiesSlain++;
|
Statistics.enemiesSlain++;
|
||||||
|
|||||||
Reference in New Issue
Block a user