Skip to content
Snippets Groups Projects
Commit ed30f52e authored by DarkGod's avatar DarkGod
Browse files

Fixed Summoner's Turtle taunting, and now also auto-taunts when summoned

parent c1f1622b
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -481,7 +481,7 @@ newAI("use_improved_tactical", function(self, t_filter, t_list)
--== PROTECT ==--
-- like LIFE but for SELF's summoner
if self.summoner and self.summoner.ai_target.actor then
if self.summoner then
local life = math.max(0, self.summoner.life)/(self.summoner.max_life - self.summoner.die_at/2)
life = (1 - life)/(math.max(.001, life)) -- modified life loss
want.protect = 10*(life*ally_compassion/(life*ally_compassion + 2.5))^2
......
......@@ -23,7 +23,7 @@ newTalent{
points = 1,
cooldown = 5,
requires_target = false,
tactical = { PROTECT = 2 },
tactical = { PROTECT = 10 },
range = 0,
radius = function(self, t) return math.floor(self:combatTalentScale(t, 4, 8)) end,
action = function(self, t)
......@@ -198,6 +198,8 @@ newTalent{
m.max_life = m.max_life * incLife
m.life = m.max_life
end
m:forceUseTalent(m.T_TAUNT, {ignore_energy=true})
game:playSoundNear(self, "talents/spell_generic")
return 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