v0.9.4: fixed soul mark errors with low health enemies with shielding

This commit is contained in:
Evan Debenham 2021-07-09 14:48:56 -04:00
parent 222c0046b1
commit e984595c32

View File

@ -601,7 +601,7 @@ public abstract class Mob extends Char {
} }
if (buff(SoulMark.class) != null) { if (buff(SoulMark.class) != null) {
int restoration = Math.min(damage, HP); int restoration = Math.min(damage, HP+shielding());
//physical damage that doesn't come from the hero is less effective //physical damage that doesn't come from the hero is less effective
if (enemy != Dungeon.hero){ if (enemy != Dungeon.hero){