in hiddenblade
Code: Select all
newTalent{
name = "Hidden Blades",
...
callbackOnCrit = function(self, t, kind, dam, chance, target)
...
local oldlife = target.life
...
if self:knowTalent(self.T_ASSASSINATE) then
local scale = nil
scale = self:callTalent(self.T_ASSASSINATE, "getBleed")
local life_diff = oldlife - target.life
if life_diff > 0 and target:canBe('cut') and scale then
target:setEffect(target.EFF_CUT, 5, {power=life_diff * scale / 5, src=self})
end
end
self:startTalentCooldown(t)
...
}
But in assassinate....
Code: Select all
newTalent{
name = "Assassinate",
...
action = function(self, t)
...
local bleed = t.getBleed(self, t)
local oldlife = target.life
...
local do_attack = function() self:attackTarget(target, nil, t.getDamage(self, t), true, true) end
....
local life_diff = oldlife - target.life
if life_diff > 0 and target:canBe('cut') and bleed then
target:setEffect(target.EFF_CUT, 5, {power=life_diff * bleed / 5, src=self})
end
return true
end,
...
}:
I assume this an error.