From d5a45a099f0f07c0130985fd6e5cb7123a8e544f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 8 Oct 2020 17:38:44 -0400 Subject: [PATCH] v0.9.0a: Prevented cases where warrior shield wouldn't reset --- .../shatteredpixeldungeon/actors/buffs/ShieldBuff.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ShieldBuff.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ShieldBuff.java index d3c07d378..75367715d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ShieldBuff.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ShieldBuff.java @@ -53,7 +53,7 @@ public abstract class ShieldBuff extends Buff { } public void setShield( int shield, float delay ) { - if (this.shielding <= shield) this.shielding = shield; + this.shielding = shield; if (target != null) target.needsShieldUpdate = true; spend(delay); }