From b0c29ec8090b18fe0b7a399a64e6722f0110a38e Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 30 Jun 2023 13:15:20 -0400 Subject: [PATCH] v2.1.4: fixed warrior shield not respecting regen-disabling effects --- .../shatteredpixel/shatteredpixeldungeon/items/BrokenSeal.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/BrokenSeal.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/BrokenSeal.java index 8b1836df8..6d93a488d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/BrokenSeal.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/BrokenSeal.java @@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items; import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Regeneration; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.ShieldBuff; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Belongings; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; @@ -185,7 +186,7 @@ public class BrokenSeal extends Item { @Override public synchronized boolean act() { - if (shielding() < maxShield()) { + if (Regeneration.regenOn() && shielding() < maxShield()) { partialShield += 1/30f; }