Skip to content
Snippets Groups Projects
Commit 1fbc0c5a authored by Lisa Greene's avatar Lisa Greene
Browse files

Revert "Rework Summon Control"

This reverts commit 3010d5b4
parent d9289168
No related branches found
No related tags found
No related merge requests found
......@@ -142,6 +142,7 @@ function setupSummon(self, m, x, y, no_control)
m:attr("confusion_immune", self:attr("confusion_immune"))
m:attr("numbed", self:attr("numbed"))
if game.party:hasMember(self) then
local can_control = not no_control and self:knowTalent(self.T_SUMMON_CONTROL)
m.remove_from_party_on_death = true
game.party:addMember(m, {
......@@ -149,6 +150,14 @@ function setupSummon(self, m, x, y, no_control)
type="summon",
title="Summon",
orders = {target=true, leash=true, anchor=true, talents=true},
on_control = function(self)
local summoner = self.summoner
self:setEffect(self.EFF_SUMMON_CONTROL, 1000, {incdur=summoner:callTalent(summoner.T_SUMMON_CONTROL, "lifetime"), res=summoner:callTalent(summoner.T_SUMMON_CONTROL, "DamReduc")})
self:hotkeyAutoTalents()
end,
on_uncontrol = function(self)
self:removeEffect(self.EFF_SUMMON_CONTROL)
end,
})
end
m:resolve() m:resolve(nil, true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment