v0.9.0b: adjusted shield logic, fixes warrior bug and stops overriding

This commit is contained in:
Evan Debenham 2020-10-12 20:04:03 -04:00
parent a08b3a94a8
commit d618d185c5
2 changed files with 2 additions and 2 deletions
core/src/main/java/com/shatteredpixel/shatteredpixeldungeon

View File

@ -53,7 +53,7 @@ public abstract class ShieldBuff extends Buff {
}
public void setShield( int shield, float delay ) {
this.shielding = shield;
if (this.shielding <= shield) this.shielding = shield;
if (target != null) target.needsShieldUpdate = true;
spend(delay);
}

View File

@ -150,7 +150,7 @@ public class BrokenSeal extends Item {
dmg = 0;
} else {
dmg -= shielding();
setShield(0);
decShield(shielding());
}
return dmg;
}