v0.9.0: ghouls now retain their champion buff on death
This commit is contained in:
parent
77bcde9ed6
commit
dd4aeb3f3a
|
@ -165,8 +165,10 @@ public class Ghoul extends Mob {
|
||||||
protected synchronized void onRemove() {
|
protected synchronized void onRemove() {
|
||||||
if (beingLifeLinked) {
|
if (beingLifeLinked) {
|
||||||
for (Buff buff : buffs()) {
|
for (Buff buff : buffs()) {
|
||||||
//corruption and king damager are preserved when removed via life link
|
//corruption, champion, and king damager are preserved when removed via life link
|
||||||
if (!(buff instanceof Corruption) && !(buff instanceof DwarfKing.KingDamager)) {
|
if (!(buff instanceof Corruption)
|
||||||
|
&& (!(buff instanceof ChampionEnemy))
|
||||||
|
&& !(buff instanceof DwarfKing.KingDamager)) {
|
||||||
buff.detach();
|
buff.detach();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user