Set summoner when copying monster objects (#7521, #7536)
authorNeil Moore <neil@s-z.org>
Fri, 1 Nov 2013 06:40:44 +0000 (02:40 -0400)
committerNeil Moore <neil@s-z.org>
Fri, 1 Nov 2013 06:40:44 +0000 (02:40 -0400)
commit79a0f274aba3587d6d6e3b245e514211dc57b872
tree0dec03ab7a0be9647c63eb3d6300a8eabddc2875
parent334afa25fe4c81f59c075f9c3ea9fe08c00fb2ab
Set summoner when copying monster objects (#7521, #7536)

Monsters lost track of their summoners when moving between different
monster lists.  This caused spectral weapons to flee to the northeast
(towards (0,0)), as handle_behaviour did not know to set their new
target to the player's position.  The lack of summoner also caused
battlespheres to dissipate on their next action after taking stairs.
crawl-ref/source/monster.cc