diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-04-28 15:55:58 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-07 18:23:26 -0600 |
commit | deb4de3a7a4bf8a603442e3d7d6572eb8b2e91b9 (patch) | |
tree | c28e2e35aeb564be650e35181c6b83c25da3d476 /crawl-ref/source/travel.cc | |
parent | 501de5b581ac485a95f908ce657aafac33552644 (diff) | |
download | crawl-ref-deb4de3a7a4bf8a603442e3d7d6572eb8b2e91b9.tar.gz crawl-ref-deb4de3a7a4bf8a603442e3d7d6572eb8b2e91b9.zip |
Allow Qazlalites to displace their own clouds.
Should address some of the residual autoexplore issues.
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r-- | crawl-ref/source/travel.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index 315077b6e8..982ba485b3 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -202,8 +202,13 @@ static inline bool _is_safe_cloud(const coord_def& c) if (ctype == CLOUD_NONE) return true; - // We can also safely run through smoke. - return !is_damaging_cloud(ctype, true); + // We can also safely run through smoke, or displace our own clouds if + // following Qazlal. + return !is_damaging_cloud(ctype, true) + || you_worship(GOD_QAZLAL) + && YOU_KILL(env.map_knowledge(c).cloudinfo()->killer) + && (!adjacent(c, you.pos()) + || env.map_knowledge(you.pos()).cloud() == CLOUD_NONE); } // Returns an estimate for the time needed to cross this feature. |