Fix : Missing with vampiric blow doesn't seem to trigger a 'Dodge' action text #59

This commit is contained in:
Boris Vanhoof 2019-06-05 23:29:12 +02:00 committed by Linus Probert
parent af957eb662
commit 78e9413188
1 changed files with 3 additions and 1 deletions

View File

@ -342,9 +342,11 @@ vampiric_blow_skill(Skill *skill, SkillData *data)
player->stats.advantage = true;
CombatResult result = stats_fight(&player->stats, &monster->stats);
player->stats.advantage = false;
monster_hit(monster, result.dmg, result.critical);
if (result.dmg) {
mixer_play_effect(SWORD_HIT);
monster_hit(monster, result.dmg, result.critical);
monster_set_bleeding(monster);
unsigned int gain = player->stats.lvl * 3;