Skip to content

Commit

Permalink
removed old macro stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ollidiemaus committed Sep 27, 2023
1 parent 9f3b3a7 commit 393b359
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions code.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
local addonName, ham = ...
local macroName = "AutoPotion"
local macroNameOld = "HAMHealthPot"
---Disable Legacy Addon
DisableAddOn("HealthstoneAutoMacro")
local isClassic = (WOW_PROJECT_ID == WOW_PROJECT_CLASSIC)
local isWrath = (WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC)

Expand Down Expand Up @@ -74,11 +71,6 @@ local function createMacroIfMissing()
if name == nil then
CreateMacro(macroName, "INV_Misc_QuestionMark")
end

local nameOld = GetMacroInfo(macroNameOld)
if nameOld == nil then
CreateMacro(macroNameOld, "INV_Misc_QuestionMark")
end
end

local function updateMacro()
Expand Down Expand Up @@ -109,7 +101,6 @@ local function updateMacro()
end
createMacroIfMissing()
EditMacro(macroName, macroName, nil, ham.macroStr)
EditMacro(macroNameOld, macroNameOld, nil, ham.macroStr)
end

local onCombat = true
Expand Down

0 comments on commit 393b359

Please sign in to comment.