Move shit

This commit is contained in:
2024-11-18 00:19:32 +01:00
parent 31bdda3c0b
commit 0e28e39c2e
5 changed files with 5 additions and 5 deletions

View File

@@ -11,13 +11,13 @@ aura_env.lookup = function()
print("No states")
return
end
if not aura_env.states[2] then
print("No states[2]")
return
end
local triggerInfo = aura_env.states[2]
if not triggerInfo then
triggerInfo = aura_env.states[1]
end
if triggerInfo then spellid = triggerInfo.trigger.spellName end
if spellid == 0 then return end
for _, bar in pairs(aura_env.bars) do
for i = 1, 12 do
@@ -26,7 +26,6 @@ aura_env.lookup = function()
if slot then
local type, _, _, id = GetActionInfo(slot)
if type == "spell" then
print(id, spellid)
if id == spellid then
local bindid = button.keyBoundTarget
local keybind = GetBindingKey(bindid)
@@ -42,6 +41,7 @@ aura_env.lookup = function()
aura_env.keybind = string.gsub(aura_env.keybind, "SHIFT%-", "S")
aura_env.keybind = string.gsub(aura_env.keybind, "CTRL%-", "C")
aura_env.keybind = string.gsub(aura_env.keybind, "ALT%-", "A")
aura_env.keybind = string.gsub(aura_env.keybind, "SPACE", "Spb")
aura_env.scanned = true
end