Option to customize the priority order
twisted-pretzel opened this issue · 4 comments
would be great to be able to customize the priority order of the healing sources, i.e.: when you want to use health potion first early on so it's available near the end of a fight
thanks.
I was curious about this too. I believe I've got it to work by making the following change in \Interface\AddOns\AutoPotion\code.lua
Find this:
local function updateAvailableHeals()
ham.itemIdList = {}
addPlayerHealingSpellsIfAvailable()
addPlayerHealingItemIfAvailable()
addHealthstoneIfAvailable()
addPotIfAvailable()
end
Replace with this:
local function updateAvailableHeals()
ham.itemIdList = {}
addPlayerHealingSpellsIfAvailable()
addPlayerHealingItemIfAvailable()
addPotIfAvailable()
addHealthstoneIfAvailable()
end
This would work on a per user basis but is not really customizable.
I'll take a look at this at someday.
I used to have a weak aura that did just this, but with the changes in TWW, macros can no longer click frames that have macrotext associated with them.
I hope it's alright, I made a fork and made the changes here.
main...davethemage:AutoPotion:main
I added a pull request as well.
Thanks!