v2.1.4: fixed warrior shield not respecting regen-disabling effects
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user