-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented a preview of the Macro Priority in the Settings Page. Also added the ability to Include the shortest Cooldown in the reset Condition of Castsequence. !!USE CAREFULLY!! I would highly advise not to use it that way.
- Loading branch information
1 parent
faa3227
commit 95a114f
Showing
9 changed files
with
355 additions
and
355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
## Interface: 100107 | ||
## Interface-Classic: 11404 | ||
## Interface-WOTLKC: 30402 | ||
## Version: 3.1.1 | ||
## Version: 3.2.0 | ||
## Title: Auto Potion | ||
## Author: ollidiemaus | ||
## Notes: Updates the Macro AutoPotion to use either Healthstone or the highest Potion found in Bags | ||
## X-Curse-Project-ID: 312940 | ||
## X-Wago-ID: yQKybBG7 | ||
## SavedVariables: HAMDB | ||
code.lua | ||
Core/Item.lua | ||
Core/Player.lua | ||
Core/Potions.lua | ||
Core/Spells.lua | ||
Core/DB.lua | ||
Core/Player.lua | ||
code.lua | ||
Bindings.lua | ||
FrameXML/InterfaceOptionsFrame.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
_G["BINDING_NAME_MACRO HAMHealthPot"] = "HAMHealthPot Macro" | ||
_G["BINDING_NAME_MACRO AutoPotion"] = "AutoPotion Macro" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
local addonName, ham = ... | ||
ham.defaults = { | ||
cdReset = false, | ||
witheringPotion = false, | ||
activatedSpells = { ham.renewal, ham.exhilaration, ham.fortitudeOfTheBear, ham.bitterImmunity, ham.desperatePrayer, | ||
ham.healingElixir } | ||
} | ||
|
||
|
||
function ham.dbContains(id) | ||
local found = false | ||
for _, v in pairs(HAMDB.activatedSpells) do | ||
if v == id then | ||
found = true | ||
end | ||
end | ||
return found | ||
end | ||
|
||
function ham.removeFromDB(id) | ||
local backup = {} | ||
if ham.dbContains(id) then | ||
for _, v in pairs(HAMDB.activatedSpells) do | ||
if v ~= id then | ||
table.insert(backup, v) | ||
end | ||
end | ||
end | ||
|
||
HAMDB.activatedSpells = CopyTable(backup) | ||
end | ||
|
||
function ham.insertIntoDB(id) | ||
table.insert(HAMDB.activatedSpells, id) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.