v2.1.4: fixed warrior shield not respecting regen-disabling effects

This commit is contained in:
Evan Debenham
2023-06-30 13:15:20 -04:00
parent 56682a28ec
commit b0c29ec809

View File

@@ -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;
}