From b9def0122143459c4d1fd0721384028f3974dc69 Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Thu, 5 Nov 2009 19:58:50 +1000 Subject: Move *_res(ist)_magic to relevant classes, provide actor interface. Signed-off-by: Jude Brown --- crawl-ref/source/godabil.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/godabil.cc') diff --git a/crawl-ref/source/godabil.cc b/crawl-ref/source/godabil.cc index 3f010cd2ef..3aec727fec 100644 --- a/crawl-ref/source/godabil.cc +++ b/crawl-ref/source/godabil.cc @@ -524,7 +524,7 @@ static int _lugonu_warp_monster(coord_def where, int pow, int, actor *) if (!mons_friendly(mon)) behaviour_event(mon, ME_ANNOY, MHITYOU); - if (check_mons_resist_magic(mon, pow * 2)) + if (mon->check_res_magic(pow * 2)) { mprf("%s %s.", mon->name(DESC_CAP_THE).c_str(), mons_resist_string(mon)); @@ -534,7 +534,7 @@ static int _lugonu_warp_monster(coord_def where, int pow, int, actor *) const int damage = 1 + random2(pow / 6); if (mon->type == MONS_BLINK_FROG) mon->heal(damage, false); - else if (!check_mons_resist_magic(mon, pow)) + else if (!mon->check_res_magic(pow)) { mon->hurt(&you, damage); if (!mon->alive()) -- cgit v1.2.3-54-g00ecf