Skip to content
Snippets Groups Projects
Commit 5e687518 authored by dg's avatar dg
Browse files

Corrupted Strength can only trigger once per turn

git-svn-id: http://svn.net-core.org/repos/t-engine4@5835 51575b47-30f0-44d4-a5cc-537603b46e54
parent cd4ae8a3
No related branches found
No related tags found
No related merge requests found
......@@ -3540,13 +3540,16 @@ function _M:postUseTalent(ab, ret)
end
-- Free melee blow
if ab.is_spell and ab.mode ~= "sustained" and self:knowTalent(self.T_CORRUPTED_STRENGTH) and not self:attr("forbid_corrupted_strength_blow") then
if ab.is_spell and ab.mode ~= "sustained" and self:knowTalent(self.T_CORRUPTED_STRENGTH) and not self:attr("forbid_corrupted_strength_blow") and not self.turn_procs.corrupted_strength then
local tgts = {}
for _, c in pairs(util.adjacentCoords(self.x, self.y)) do
local target = game.level.map(c[1], c[2], Map.ACTOR)
if target and self:reactionToward(target) < 0 then tgts[#tgts+1] = target end
end
if #tgts > 0 then self:attackTarget(rng.table(tgts), DamageType.BLIGHT, self:combatTalentWeaponDamage(self.T_CORRUPTED_STRENGTH, 0.5, 1.1), true) end
if #tgts > 0 then
self.turn_procs.corrupted_strength = true
self:attackTarget(rng.table(tgts), DamageType.BLIGHT, self:combatTalentWeaponDamage(self.T_CORRUPTED_STRENGTH, 0.5, 1.1), true)
end
end
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