[1.2.2] Combination kick disables all sustains.
Posted: Thu Jun 19, 2014 9:31 pm
talents/unarmed-discipline.lua lines 58-74
It's supposed to clear one sustain per hit, instead it adds every one it can to the list on hit and clears them all after.
Discovered thanks to the themuffinthief for noticing he disabled nine sustains at once.
Code: Select all
local talents = {}
for i = 1, t.getStrikes(self, t) do
local hit = self:attackTarget(target, nil, t.getDamage(self, t), true)
if hit then
for tid, active in pairs(target.sustain_talents) do
if active then
local talent = target:getTalentFromId(tid)
if t.checkType(self, t, talent) then talents[tid] = talent.name end
end
end
end
end
for k, v in pairs(talents) do
target:forceUseTalent(k, {ignore_energy=true})
end
Discovered thanks to the themuffinthief for noticing he disabled nine sustains at once.