From df9690ec8d905f4c397fef1b0aea02127c8307d8 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 8 Jan 2009 01:25:40 +0000 Subject: Make sure spectral things can actually levitate (oops). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8315 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/mon-util.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/mon-util.cc') diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 174d2f565a..1a0699d392 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -1464,6 +1464,11 @@ flight_type mons_flies(const monsters *mon) flight_type ret = mons_class_flies(montype); + // Handle the case where the zombified base monster can't fly, but + // the zombified monster can (e.g. spectral things). + if (ret == FL_NONE && mons_is_zombified(mon)) + ret = mons_class_flies(mon->type); + if (ret == FL_NONE && _scan_mon_inv_randarts(mon, RAP_LEVITATE) > 0) ret = FL_LEVITATE; -- cgit v1.2.3-54-g00ecf