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

Merge branch 'annihilator-bugs' into 'master'

Fixes to block callback and archery AI

callbackOnBlock now passes in the blocked parameter, fixes a bug with Annihilator's shield capacitor.
The addition to shoot is so that the mecha knows it can shoot through the player and turrets, makes it a bit less dumb.
Also added archery_pass_friendly to the thoughtform archer so it's less useless.


See merge request !591
parents 5c7e914c 6f8b10da
No related branches found
No related tags found
1 merge request!591Fixes to block callback and archery AI
Pipeline #
......@@ -199,9 +199,9 @@ newTalent{
body = { INVEN = 10, MAINHAND = 1, BODY = 1, QUIVER=1, HANDS = 1, FEET = 1},
ai = "summoned", ai_real = "tactical",
ai_state = { ai_move="move_complex", talent_in=3, ally_compassion=10 },
ai_state = { ai_move="move_complex", talent_in=1, ally_compassion=10 },
ai_tactic = resolvers.tactic("ranged"),
archery_pass_friendly = 1,
max_life = resolvers.rngavg(100,110),
life_rating = 12,
combat_armor = 0, combat_def = 0,
......
......@@ -69,6 +69,13 @@ newTalent{
hide = true,
innate = true,
points = 1,
target = function(self, t)
local ff = true
if self.archery_pass_friendly then ff = false end
return {type="bolt", range=self:getTalentRange(t), talent=t, display = {particle=particle, trail=trail}, friendlyfire=ff,
friendlyblock=ff,
}
end,
stamina = function(self, t)
if not self:isTalentActive("T_SKIRMISHER_BOMBARDMENT") or not wardenPreUse(self, t, false, "sling") then return nil end
......
......@@ -2366,7 +2366,7 @@ newEffect{
end
end
eff.did_block = true
self:fireTalentCheck("callbackOnBlock", eff, dam, type, src)
self:fireTalentCheck("callbackOnBlock", eff, dam, type, src, blocked)
return amt
end,
......
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