diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-12-27 20:11:52 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-12-27 20:11:52 +0100 |
commit | b3e625f6c14dc3354141a941f583adda1a9a939b (patch) | |
tree | b3b2fe761370c3d8367e6dfd8872a6ce36f84464 /crawl-ref/source/mon-project.cc | |
parent | 4625fe5165f053cc056149de83331c1618aa01e5 (diff) | |
download | crawl-ref-b3e625f6c14dc3354141a941f583adda1a9a939b.tar.gz crawl-ref-b3e625f6c14dc3354141a941f583adda1a9a939b.zip |
Make player-cast ioods restricted to the LOS radius.
This is a discrepancy from the monster version, but since there's much fun
to be had if we allow long-lived orbs, we'll explain that by a scribal error
in most copies of spellbooks or something like that.
Diffstat (limited to 'crawl-ref/source/mon-project.cc')
-rw-r--r-- | crawl-ref/source/mon-project.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-project.cc b/crawl-ref/source/mon-project.cc index d812be7982..d1d3ba4f3b 100644 --- a/crawl-ref/source/mon-project.cc +++ b/crawl-ref/source/mon-project.cc @@ -206,6 +206,13 @@ bool iood_act(monsters &mon, bool no_trail) return (true); } + if (mon.props["iood_kc"].get_byte() == KC_YOU + && (you.pos() - pos).rdist() >= LOS_RADIUS) + { // not actual vision, because of the smoke trail + _iood_dissipate(mon); + return (true); + } + if (pos == mon.pos()) return (false); |