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

Add warband currency support #5229

Merged
merged 12 commits into from
Nov 12, 2024
10 changes: 10 additions & 0 deletions WeakAuras/GenericTrigger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4936,6 +4936,16 @@ Private.GetCurrencyInfoForTrigger = function(trigger)
end
end

Private.ExecEnv.FetchCurrencyDataFromAccountCharacters = function(currencyId, refresh)
Private.AccountCurrencyData = Private.AccountCurrencyData or {}
if Private.AccountCurrencyData[currencyId] and not refresh then
return Private.AccountCurrencyData[currencyId]
end

Private.AccountCurrencyData[currencyId] = C_CurrencyInfo.FetchCurrencyDataFromAccountCharacters(currencyId)
Boneshockx marked this conversation as resolved.
Show resolved Hide resolved
return Private.AccountCurrencyData[currencyId]
end


local types = {}
tinsert(types, "custom")
Expand Down
Loading