v0.9.0b: adjusted shield logic, fixes warrior bug and stops overriding
This commit is contained in:
parent
a08b3a94a8
commit
d618d185c5
core/src/main/java/com/shatteredpixel/shatteredpixeldungeon
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -150,7 +150,7 @@ public class BrokenSeal extends Item {
|
|||
dmg = 0;
|
||||
} else {
|
||||
dmg -= shielding();
|
||||
setShield(0);
|
||||
decShield(shielding());
|
||||
}
|
||||
return dmg;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user