Prevent stunned monsters from getting scared by player

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

View File

@ -145,6 +145,7 @@ 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);
if (!monster->state.current == STUNNED)
monster_set_state(monster, SCARED, 3);
}
}