summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-19 01:48:18 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-19 01:48:18 +0000
commit18e359fad18aa25f1b5f3e2864071b2b03abf73a (patch)
treea3edf6a7f3495c69a665802f4d90640ae34c66a5 /crawl-ref/source/spells1.cc
parenta1574880f1729274dafa0a41159f2b62c8a7c7b2 (diff)
downloadcrawl-ref-18e359fad18aa25f1b5f3e2864071b2b03abf73a.tar.gz
crawl-ref-18e359fad18aa25f1b5f3e2864071b2b03abf73a.zip
Fix assertion when healing a monster as a non-Elyvilonite (oops).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9645 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 102eb0cbf7..28a0437b8e 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -632,7 +632,8 @@ static bool _mons_hostile(const monsters *mon)
static bool _can_pacify_monster(const monsters *mon, const int healed)
{
- ASSERT(you.religion == GOD_ELYVILON);
+ if (you.religion != GOD_ELYVILON)
+ return (false);
if (healed < 1)
return (false);