Skip to content
Snippets Groups Projects
Commit 543ad968 authored by dg's avatar dg
Browse files

last lethality talent: Snap

git-svn-id: http://svn.net-core.org/repos/t-engine4@452 51575b47-30f0-44d4-a5cc-537603b46e54
parent caf64fa8
No related branches found
No related tags found
No related merge requests found
......@@ -57,3 +57,33 @@ newTalent{
format(3 + math.ceil(self:getTalentLevel(t) * 1.5), self:getWil(70))
end,
}
newTalent{
name = "Snap",
type = {"cunning/lethality",4},
require = cuns_req4,
points = 5,
stamina = 50,
cooldown = 50,
action = function(self, t)
local nb = math.ceil(self:getTalentLevel(t) + 2)
local tids = {}
for tid, _ in pairs(self.talents_cd) do
local tt = self:getTalentFromId(tid)
if tt.type[2] <= self:getTalentLevelRaw(t) then
tids[#tids+1] = tid
end
end
for i = 1, nb do
if #tids == 0 then break end
local tid = rng.tableRemove(tids)
self.talents_cd[tid] = nil
end
self.changed = true
return true
end,
info = function(self, t)
return ([[Your quick wits allow you to reset the cooldown of %d of your combat talents of level %d or less.]]):
format(math.ceil(self:getTalentLevel(t) + 2), self:getTalentLevelRaw(t))
end,
}
No preview for this file type
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