v0.4.1a: fixed a bug with warlock's soul mark

This commit is contained in:
Evan Debenham 2016-08-08 15:53:33 -04:00
parent cddb5c9e9e
commit d119669261

View File

@ -390,7 +390,7 @@ public abstract class Mob extends Char {
} }
if (buff(SoulMark.class) != null) { if (buff(SoulMark.class) != null) {
int restoration = Math.max(damage, HP); int restoration = Math.min(damage, HP);
Dungeon.hero.buff(Hunger.class).satisfy(restoration*0.5f); Dungeon.hero.buff(Hunger.class).satisfy(restoration*0.5f);
Dungeon.hero.HP = (int)Math.ceil(Math.min(Dungeon.hero.HT, Dungeon.hero.HP+(restoration*0.25f))); Dungeon.hero.HP = (int)Math.ceil(Math.min(Dungeon.hero.HT, Dungeon.hero.HP+(restoration*0.25f)));
Dungeon.hero.sprite.emitter().burst( Speck.factory(Speck.HEALING), 1 ); Dungeon.hero.sprite.emitter().burst( Speck.factory(Speck.HEALING), 1 );