Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to customize the priority order #25

Open
twisted-pretzel opened this issue Jul 19, 2023 · 3 comments
Open

Option to customize the priority order #25

twisted-pretzel opened this issue Jul 19, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@twisted-pretzel
Copy link

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.

@bedroombull
Copy link

bedroombull commented Oct 2, 2023

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

@ollidiemaus
Copy link
Owner

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

@ollidiemaus ollidiemaus added the enhancement New feature or request label Nov 10, 2023
@davethemage
Copy link
Contributor

davethemage commented Aug 7, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants