summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 53c0021c81..881216ee1a 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -899,8 +899,12 @@ void ouch(int dam, int death_source, kill_method_type death_type,
}
// Also don't kill wizards testing Xom acts.
- if (crawl_state.prev_cmd == CMD_WIZARD && you.religion != GOD_XOM)
+ if ((crawl_state.repeat_cmd == CMD_WIZARD
+ || crawl_state.prev_cmd == CMD_WIZARD)
+ && you.religion != GOD_XOM)
+ {
return;
+ }
// Okay, you *didn't* escape death.
you.reset_escaped_death();