summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-miscast.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-02-17 00:03:25 +0000
committerChris Campbell <chriscampbell89@gmail.com>2014-02-17 00:18:01 +0000
commitf53cafb8e01dc16aee8096cc8b136c14fc026108 (patch)
tree284bb281e87e5fe0c98eb082c0dc05bbbd03b30d /crawl-ref/source/spl-miscast.cc
parent9a36eb589b74d9cb2f2b5f8f1c254ca98840e758 (diff)
downloadcrawl-ref-f53cafb8e01dc16aee8096cc8b136c14fc026108.tar.gz
crawl-ref-f53cafb8e01dc16aee8096cc8b136c14fc026108.zip
Make Zot trap malign gateways generate near the triggerer, not the player
Fixes neutral/friendly monsters elsewhere on the level making malign gateways appear next to the player (especially under Jiyva, see #8161).
Diffstat (limited to 'crawl-ref/source/spl-miscast.cc')
-rw-r--r--crawl-ref/source/spl-miscast.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-miscast.cc b/crawl-ref/source/spl-miscast.cc
index 310ff3a114..146fe620b1 100644
--- a/crawl-ref/source/spl-miscast.cc
+++ b/crawl-ref/source/spl-miscast.cc
@@ -635,7 +635,7 @@ bool MiscastEffect::_send_to_abyss()
// XXX: Mostly duplicated from cast_malign_gateway.
bool MiscastEffect::_malign_gateway()
{
- coord_def point = find_gateway_location(&you);
+ coord_def point = find_gateway_location(target);
bool success = (point != coord_def(0, 0));
if (success)