Make erupt always push back 1 tile without any artifacts

This commit is contained in:
Linus Probert 2019-05-14 08:38:42 +02:00
parent 43ca8f4560
commit 7ddaab816e
1 changed files with 8 additions and 9 deletions

View File

@ -891,15 +891,14 @@ skill_erupt(Skill *skill, SkillData *data)
monster_hit(r->monster, dmg);
gui_log("%s takes %d damage from the explosion", r->monster->label, dmg);
monster_set_bleeding(r->monster);
if (player_has_artifact(player, PUSH_BACK)) {
int lvl = player_has_artifact(player, PUSH_BACK);
monster_push(r->monster,
player,
rm,
VEC2D((float) (i*lvl),
(float) (j*lvl))
);
}
int lvl = 1 + player_has_artifact(player, PUSH_BACK);
monster_push(r->monster,
player,
rm,
VEC2D((float) (i*lvl),
(float) (j*lvl))
);
}
}
}