diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Brute.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Brute.java index 1441f4adf..3493550fb 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Brute.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Brute.java @@ -80,15 +80,23 @@ public class Brute extends Mob { } } + //cache this buff to prevent having to call buff(...) a bunch. + private BruteRage rage; + @Override - public synchronized boolean isAlive() { + public boolean isAlive() { if (super.isAlive()){ return true; } else { if (!hasRaged){ triggerEnrage(); } - return !buffs(BruteRage.class).isEmpty(); + if (rage == null){ + for (BruteRage b : buffs(BruteRage.class)){ + rage = b; + } + } + return rage != null && rage.shielding() > 0; } }