[Hide Content]From ff256504bc5125334de382d2c19d6fd35e7baf9d Mon Sep 17 00:00:00 2001
From: Alan Malloy <alan@malloys.org>
Date: Mon, 6 Apr 2015 15:27:54 -0700
Subject: [PATCH] Fix targeting of Dithmenos spell-shadowing.
If you target a floor tile with za., your shadow shouldn't use zaf
targeting, which might, eg, hit an allied monster behind the tile
you targeted.
---
crawl-ref/source/godabil.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/crawl-ref/source/godabil.cc b/crawl-ref/source/godabil.cc
index ecd82b8..2716952 100644
--- a/crawl-ref/source/godabil.cc
+++ b/crawl-ref/source/godabil.cc
@@ -4144,6 +4144,8 @@ void dithmenos_shadow_spell(bolt* orig_beam, spell_type spell)
bolt beem;
beem.target = target;
+ beem.aimed_at_spot = orig_beam -> aimed_at_spot;
+
mprf(MSGCH_FRIEND_SPELL, "%s mimicks your spell!",
mon->name(DESC_THE).c_str());
mons_cast(mon, beem, shadow_spell, MON_SPELL_WIZARD, false);
--
1.9.1