From 18e359fad18aa25f1b5f3e2864071b2b03abf73a Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 19 Apr 2009 01:48:18 +0000 Subject: 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 --- crawl-ref/source/spells1.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/spells1.cc') 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); -- cgit v1.2.3-54-g00ecf