Commit 28e73b32898919964370d01730ec0cb1515ed755

Authored by DarkGod
1 parent 40983cd7

Prevent clicking multiple times on hotkeys while the targetting interface is run…

…ning (prevents infinite ressource bug)
... ... @@ -1354,6 +1354,8 @@ end
1354 1354 --- Uses an hotkeyed talent
1355 1355 -- This requires the ActorTalents interface to use talents and a method player:playerUseItem(o, item, inven) to use inventory objects
1356 1356 function _M:activateHotkey(id)
  1357 + if game.target_mode then print("[HOTKEY] refusing to activate due to targetting mode", game.target_mode) return end
  1358 +
1357 1359 local kind, tid = self:getHotkeyInfo(id)
1358 1360 if kind == "talent" then
1359 1361 local t = self:getTalentFromId(tid)
... ...