Skip to content

Commit

Permalink
Use actual stealth rather than Stealth skill when trying to shake off…
Browse files Browse the repository at this point in the history
… monsters.

Previously a GDA character with no stealth could still lose monsters when
going around corners if it trained stealth skill a little bit.
  • Loading branch information
elliptic committed Dec 12, 2012
1 parent ba4bc3f commit f7e431e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawl-ref/source/mon-behv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ void handle_behaviour(monster* mon)
mon->target = PLAYER_POS; // infallible tracking in zotdef
else
{
if (x_chance_in_y(300, you.skill(SK_STEALTH, 100))
if (x_chance_in_y(50, you.stealth())
|| you.penance[GOD_ASHENZARI] && coinflip())
{
mon->target = you.pos();
Expand Down

0 comments on commit f7e431e

Please sign in to comment.