summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-summoning.h
diff options
context:
space:
mode:
authorEd Gonzalez <ed.gonzalez3@gmail.com>2013-06-12 13:43:22 -0700
committerEd Gonzalez <ed.gonzalez3@gmail.com>2013-06-12 13:43:22 -0700
commit2895fcecf56bba90072ddb3d156c54b69a971767 (patch)
tree57f413e63c669732fbc37a4a6fbf9af4d12ae429 /crawl-ref/source/spl-summoning.h
parentb6e942d54b2a4bd90fbbd550a22dbbbb74ea423b (diff)
downloadcrawl-ref-2895fcecf56bba90072ddb3d156c54b69a971767.tar.gz
crawl-ref-2895fcecf56bba90072ddb3d156c54b69a971767.zip
Fixed allied monster spectral weapon not attacking and related crashes.
Now the SW dissipates with its owner, and doesn't crash if orphaned. The SW follows its owner (mostly), instead of the player. Unified monster and player code for triggering SW to attack, and disabled triggering if running an fsim. Fixed crash on attacking own spectral weapon.
Diffstat (limited to 'crawl-ref/source/spl-summoning.h')
-rw-r--r--crawl-ref/source/spl-summoning.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-summoning.h b/crawl-ref/source/spl-summoning.h
index ff85ffd08b..17ea4c32ad 100644
--- a/crawl-ref/source/spl-summoning.h
+++ b/crawl-ref/source/spl-summoning.h
@@ -94,4 +94,5 @@ spret_type cast_fulminating_prism(int pow, const coord_def& where, bool fail);
monster* find_spectral_weapon(const actor* agent);
spret_type cast_spectral_weapon(actor *agent, int pow, god_type god, bool fail);
void end_spectral_weapon(monster* mons, bool killed, bool quiet=false);
+bool trigger_spectral_weapon(actor* agent, actor* target);
#endif