From 210d1b4e8abe9fc4bdf1973cafc7175420b9f8a1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 29 Aug 2024 15:25:52 -0400 Subject: [PATCH] v2.5.0: fixed invuln fx cancelling champion mob auras --- .../shatteredpixeldungeon/actors/buffs/Invulnerability.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Invulnerability.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Invulnerability.java index 4b5196708..3ac7cc91b 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Invulnerability.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Invulnerability.java @@ -35,7 +35,7 @@ public class Invulnerability extends FlavourBuff { @Override public void fx(boolean on) { - if (target.buff(ChampionEnemy.class) != null) return; + if (!target.buffs(ChampionEnemy.class).isEmpty()) return; if (on) target.sprite.aura( 0xFFFF00 ); else target.sprite.clearAura(); }