v3.1.0: Warrior's broken seal no longer recharges when regen is off

This commit is contained in:
Evan Debenham
2025-05-06 11:44:55 -04:00
parent 4cc6a4a299
commit d15f1073a2

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;
@@ -318,7 +319,7 @@ public class BrokenSeal extends Item {
@Override
public synchronized boolean act() {
if (cooldown > 0){
if (cooldown > 0 && Regeneration.regenOn()){
cooldown--;
}