From dd4aeb3f3af3864c5c92d3229f7e8d4c746101b1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 4 Oct 2020 16:13:43 -0400 Subject: [PATCH] v0.9.0: ghouls now retain their champion buff on death --- .../shatteredpixeldungeon/actors/mobs/Ghoul.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java index fb83dfa5d..652f4d4ae 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java @@ -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(); } }