Skip to content

Commit

Permalink
Fix some fear causing or resisting messages if the player is already …
Browse files Browse the repository at this point in the history
…Afraid.
  • Loading branch information
elunna committed Oct 8, 2023
1 parent a299d34 commit 0cd2fc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/mhitu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3488,7 +3488,8 @@ struct attack *mattk;
You("are not afraid.");
break;
}
You("are struck with a sudden, terrible fear.");
if (!Afraid)
You("are struck with a sudden, terrible fear.");
make_afraid((HAfraid & TIMEOUT) + (long) dmg, TRUE);
u.fearedmon = mtmp;
aggravate();
Expand Down Expand Up @@ -3991,7 +3992,8 @@ struct attack *mattk;
s_suffix(Monnam(mtmp)), An(bare_artifactname(ublindf)));
break;
}
You("are struck with a terrible fear of %s!", mon_nam(mtmp));
if (!Afraid)
You("are struck with a terrible fear of %s!", mon_nam(mtmp));
make_afraid((HAfraid & TIMEOUT) + (long) rn1(10, 5), TRUE);
u.fearedmon = mtmp;
if (mtmp->data == &mons[PM_BODAK])
Expand Down Expand Up @@ -4244,7 +4246,8 @@ struct attack *mattk;
You("are not afraid of the %s!", mon_nam(mtmp));
break;
}
pline("%s aberrant stare frightens you to the core!",
if (!Afraid)
pline("%s aberrant stare frightens you to the core!",
s_suffix(Monnam(mtmp)));
if (Free_action){
pline("But you quickly regain composure.");
Expand Down
2 changes: 1 addition & 1 deletion src/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -5129,7 +5129,7 @@ struct monst *mtmp;
} else if (ACURR(A_CHA) + (Deaf ? 5 : 0) < rn2(25 + i)) {
make_afraid((HAfraid & TIMEOUT) + (long) rn1(10, 5 * i), TRUE);
u.fearedmon = mtmp;
} else {
} else if (!Afraid) {
You("hold firm.");
}
}
Expand Down

0 comments on commit 0cd2fc4

Please sign in to comment.