From 37a7b0b4c0952c3c1a2a4b3118ee3605b6b02c3c Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Sat, 26 Feb 2011 11:19:53 +0000 Subject: [PATCH] fix summon by party ai git-svn-id: http://svn.net-core.org/repos/t-engine4@2844 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/data/talents/gifts/gifts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/tome/data/talents/gifts/gifts.lua b/game/modules/tome/data/talents/gifts/gifts.lua index 377d958ddf..da6d043da7 100644 --- a/game/modules/tome/data/talents/gifts/gifts.lua +++ b/game/modules/tome/data/talents/gifts/gifts.lua @@ -98,7 +98,7 @@ function setupSummon(self, m, x, y) m:attr("blind_immune", self:attr("blind_immune")) m:attr("pin_immune", self:attr("pin_immune")) m:attr("confusion_immune", self:attr("confusion_immune")) - if self.player then + if game.party:hasMember(self) then m.remove_from_party_on_death = true game.party:addMember(m, { control=self:knowTalent(self.T_SUMMON_CONTROL) and "full" or "no", -- GitLab