diff options
author | Neil Moore <neil@s-z.org> | 2012-08-20 02:39:21 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-08-20 02:39:21 -0400 |
commit | 67db780c01acf93bbf9299e2d0ffb7039cd5831f (patch) | |
tree | 1c7bede072f9e549b2d66cab0fda5bcaba340c0a /crawl-ref/source/wiz-fsim.cc | |
parent | 26cc56c5f23e26896902289cb2ea0473b378f12d (diff) | |
download | crawl-ref-67db780c01acf93bbf9299e2d0ffb7039cd5831f.tar.gz crawl-ref-67db780c01acf93bbf9299e2d0ffb7039cd5831f.zip |
Fix fsim-defending against a speed 0 monster (#6089)
Diffstat (limited to 'crawl-ref/source/wiz-fsim.cc')
-rw-r--r-- | crawl-ref/source/wiz-fsim.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/wiz-fsim.cc b/crawl-ref/source/wiz-fsim.cc index 79e9b9c139..210da38961 100644 --- a/crawl-ref/source/wiz-fsim.cc +++ b/crawl-ref/source/wiz-fsim.cc @@ -359,7 +359,7 @@ static fight_data _get_fight_data(monster &mon, int iter_limit, bool defend) bool did_hit = false; fight_melee(&mon, &you, &did_hit, true); - time_taken += (100 / mon.speed); + time_taken += 100 / (mon.speed ? mon.speed : 10); int damage = you.hp_max - you.hp; if (did_hit) |