From 334f3a460aca61b3e1f1d0046d8c0ed821f4f5c7 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 28 Jul 2025 14:49:06 -0400 Subject: [PATCH] v3.2.0: fixed body form working on all armor wielders --- .../shatteredpixeldungeon/items/armor/Armor.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java index 06c271bb1..6dde18cb9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java @@ -33,10 +33,12 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroSubClass; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent; +import com.shatteredpixel.shatteredpixeldungeon.actors.hero.abilities.rogue.ShadowClone; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.AuraOfProtection; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.BodyForm; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.HolyWard; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.LifeLinkSpell; +import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.PrismaticImage; import com.shatteredpixel.shatteredpixeldungeon.effects.Speck; import com.shatteredpixel.shatteredpixeldungeon.items.BrokenSeal; import com.shatteredpixel.shatteredpixeldungeon.items.EquipableItem; @@ -497,7 +499,9 @@ public class Armor extends EquipableItem { if (defender.buff(MagicImmune.class) == null) { Glyph trinityGlyph = null; - if (Dungeon.hero.buff(BodyForm.BodyFormBuff.class) != null){ + //only when it's the hero or a char that uses the hero's armor + if (Dungeon.hero.buff(BodyForm.BodyFormBuff.class) != null + && (defender == Dungeon.hero || defender instanceof PrismaticImage || defender instanceof ShadowClone.ShadowAlly)){ trinityGlyph = Dungeon.hero.buff(BodyForm.BodyFormBuff.class).glyph(); if (glyph != null && trinityGlyph != null && trinityGlyph.getClass() == glyph.getClass()){ trinityGlyph = null;