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.