From 6512c8b8cdb0645b7fab41ad6d1c76e0ea18c183 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 25 Apr 2025 17:46:31 -0400 Subject: [PATCH] v3.1.0: Fixed metamorphed aggro barrier using old logic --- .../shatteredpixeldungeon/actors/hero/Hero.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index c59871292..acb3ae990 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -1392,9 +1392,10 @@ public class Hero extends Char { if (heroClass != HeroClass.DUELIST && hasTalent(Talent.AGGRESSIVE_BARRIER) && buff(Talent.AggressiveBarrierCooldown.class) == null - && (HP / (float)HT) < 0.20f*(1+pointsInTalent(Talent.AGGRESSIVE_BARRIER))){ - Buff.affect(this, Barrier.class).setShield(3); - sprite.showStatusWithIcon(CharSprite.POSITIVE, "3", FloatingText.SHIELDING); + && (HP / (float)HT) <= 0.5f){ + int shieldAmt = 1 + 2*pointsInTalent(Talent.AGGRESSIVE_BARRIER); + Buff.affect(this, Barrier.class).setShield(shieldAmt); + sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shieldAmt), FloatingText.SHIELDING); Buff.affect(this, Talent.AggressiveBarrierCooldown.class, 50f); }