summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index cb12146d07..5b0ee4b460 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -3202,9 +3202,12 @@ static int _xom_summon_hostiles(int sever, bool debug = false)
numdemons = std::min(numdemons + 1, 14);
// Limit number of demons by experience level.
- const int maxdemons = (you.max_level * 2);
- if (numdemons > maxdemons)
- numdemons = maxdemons;
+ if (!you.penance[GOD_XOM])
+ {
+ const int maxdemons = (you.max_level * 2);
+ if (numdemons > maxdemons)
+ numdemons = maxdemons;
+ }
int num_summoned = 0;
for (int i = 0; i < numdemons; ++i)