v3.3.0: fixed armored brutes not benefitting from enrage shield

This commit is contained in:
Evan Debenham
2025-11-30 14:12:54 -05:00
parent 1dcb63ef11
commit 823f6fa87a
2 changed files with 5 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ public class ArmoredBrute extends Brute {
@Override
protected void triggerEnrage () {
Buff.affect(this, ArmoredRage.class).setShield(HT/2 + 1);
sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(HT/2 + 1), FloatingText.SHIELDING );
sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(HT/2), FloatingText.SHIELDING );
if (Dungeon.level.heroFOV[pos]) {
sprite.showStatus( CharSprite.WARNING, Messages.get(this, "enraged") );
}

View File

@@ -92,7 +92,9 @@ public class Brute extends Mob {
triggerEnrage();
}
if (rage == null){
rage = buff(BruteRage.class);
for (BruteRage b : buffs(BruteRage.class)){
rage = b;
}
}
return rage != null && rage.shielding() > 0;
}
@@ -101,7 +103,7 @@ public class Brute extends Mob {
protected void triggerEnrage(){
rage = Buff.affect(this, BruteRage.class);
rage.setShield(HT/2 + 4);
sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(HT/2 + 4), FloatingText.SHIELDING );
sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(HT/2), FloatingText.SHIELDING );
if (Dungeon.level.heroFOV[pos]) {
SpellSprite.show( this, SpellSprite.BERSERK);
}