diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-08 01:25:40 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-08 01:25:40 +0000 |
commit | df9690ec8d905f4c397fef1b0aea02127c8307d8 (patch) | |
tree | dbd303f2d8774603e6d3ec71395e4d74da6cc60f /crawl-ref/source/mon-util.cc | |
parent | 9bed4331d7d68ec8ed0678b4731a169cea1c27f1 (diff) | |
download | crawl-ref-df9690ec8d905f4c397fef1b0aea02127c8307d8.tar.gz crawl-ref-df9690ec8d905f4c397fef1b0aea02127c8307d8.zip |
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
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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; |