summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godabil.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-05 19:58:50 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-05 19:58:50 +1000
commitb9def0122143459c4d1fd0721384028f3974dc69 (patch)
treef7b26f422d93b6f6769a45cb757c9075279a7c6a /crawl-ref/source/godabil.cc
parent313465bf23382559f7c26c63849b64266c8d939f (diff)
downloadcrawl-ref-b9def0122143459c4d1fd0721384028f3974dc69.tar.gz
crawl-ref-b9def0122143459c4d1fd0721384028f3974dc69.zip
Move *_res(ist)_magic to relevant classes, provide actor interface.
Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/godabil.cc')
-rw-r--r--crawl-ref/source/godabil.cc4
1 files changed, 2 insertions, 2 deletions
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())