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

Rework Summon Control

parent 7b659589
No related branches found
No related tags found
1 merge request!543Summoner Tweaks
......@@ -142,7 +142,6 @@ 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, {
......@@ -150,14 +149,6 @@ 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