Auto Potion

Auto Potion

282k Downloads

Option to customize the priority order

twisted-pretzel opened this issue · 4 comments

commented

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.

commented

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

commented

This would work on a per user basis but is not really customizable.
I'll take a look at this at someday.

commented

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!

commented

这可以针对每个用户进行操作,但实际上无法自定义。 我以后会研究一下。

I think at least it is necessary to be able to customize the order of the health stone and injector. I prefer to use the health stone first and then the injector because the CD of the health stone is faster