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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@2083 51575b47-30f0-44d4-a5cc-537603b46e54
parent 40e6409e
No related branches found
No related tags found
No related merge requests found
......@@ -246,9 +246,9 @@ function _M:learnTalent(t_id, force, nb)
-- Auto assign to hotkey
if t.mode ~= "passive" and self.hotkey then
if self.quickhotkeys then
hk = self.quickhotkeys[t_id]
local hk = self.quickhotkeys[t_id]
print("[quickhotkeys] are",hk)
if self.quickhotkeys[t_id] then
if self.quickhotkeys[t_id] and not self.hotkey[hk] then
print("[quickhotkeys] found")
self.hotkey[hk] = {"talent", t_id}
found = true
......
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