Prevent stunned monsters from getting scared by player

This commit is contained in:
Linus Probert 2018-08-30 09:55:04 +02:00
parent 5a8c1ece14
commit 0f50d3b015
1 changed files with 2 additions and 1 deletions

View File

@ -145,7 +145,8 @@ on_monster_collision(Player *player,
if (get_random(10) < player_has_artifact(player, FEAR_INDUCING)) {
gui_log("%s shivers with fear at the sight of you",
monster->label);
monster_set_state(monster, SCARED, 3);
if (!monster->state.current == STUNNED)
monster_set_state(monster, SCARED, 3);
}
}