diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-08 16:32:21 +0300 |
---|---|---|
committer | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-08 16:32:21 +0300 |
commit | a4eda3c37bb9ec6d9b847e827390a66062229b99 (patch) | |
tree | 446426006aee0011b8c5fec7c7e4104f35522d18 /crawl-ref/source/player.cc | |
parent | ce42ec3ebfa796ba601e46d27c7c4f5e01489970 (diff) | |
download | crawl-ref-a4eda3c37bb9ec6d9b847e827390a66062229b99.tar.gz crawl-ref-a4eda3c37bb9ec6d9b847e827390a66062229b99.zip |
Use this instead of &you in player::melee_evasion.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index cb352bfd18..f54082c9cf 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6344,7 +6344,7 @@ int player::armour_class() const int player::melee_evasion(const actor *act) const { return (player_evasion() - - ((!act || act->visible_to(&you)) ? 0 : 10) + - ((!act || act->visible_to(this)) ? 0 : 10) - (you_are_delayed() && !is_run_delay(current_delay_action())? 5 : 0)); } |