v0.9.0: ghouls now retain their champion buff on death

This commit is contained in:
Evan Debenham 2020-10-04 16:13:43 -04:00
parent 77bcde9ed6
commit dd4aeb3f3a

View File

@ -165,8 +165,10 @@ public class Ghoul extends Mob {
protected synchronized void onRemove() {
if (beingLifeLinked) {
for (Buff buff : buffs()) {
//corruption and king damager are preserved when removed via life link
if (!(buff instanceof Corruption) && !(buff instanceof DwarfKing.KingDamager)) {
//corruption, champion, and king damager are preserved when removed via life link
if (!(buff instanceof Corruption)
&& (!(buff instanceof ChampionEnemy))
&& !(buff instanceof DwarfKing.KingDamager)) {
buff.detach();
}
}