v0.9.0b: tweaked warrior shield buff to cancel logic when shield is 0
This commit is contained in:
parent
0336e616fe
commit
bb57ab100d
|
@ -145,6 +145,8 @@ public class BrokenSeal extends Item {
|
|||
@Override
|
||||
//logic edited slightly as buff should not detach
|
||||
public int absorbDamage(int dmg) {
|
||||
if (shielding() <= 0) return dmg;
|
||||
|
||||
if (shielding() >= dmg){
|
||||
decShield(dmg);
|
||||
dmg = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user