From 2ac4093ff9bbefed1ba51a3865507ac49a419bbd Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sat, 7 Nov 2009 17:33:57 +0300 Subject: Replace mons_is_summoned with monsters::is_summoned. Signed-off-by: Charles Otto --- crawl-ref/source/spells2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spells2.cc') diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index 034e891c6c..0ec3313248 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -696,7 +696,7 @@ void drain_life(int pow) const int hurted = 3 + random2(7) + random2(pow); behaviour_event(monster, ME_WHACK, MHITYOU, you.pos()); - if (!mons_is_summoned(monster)) + if (!monster->is_summoned()) hp_gain += hurted; monster->hurt(&you, hurted); @@ -775,7 +775,7 @@ bool vampiric_drain(int pow, const dist &vmove) return (false); } - const bool mons_was_summoned = mons_is_summoned(monster); + const bool mons_was_summoned = monster->is_summoned(); monster->hurt(&you, hp_gain); -- cgit v1.2.3-54-g00ecf