Skip to content

Commit

Permalink
Currency Trigger: Add Warband Currency Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Boneshockx committed Jul 29, 2024
1 parent 1a08b4e commit 995a03c
Show file tree
Hide file tree
Showing 2 changed files with 279 additions and 25 deletions.
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)
return Private.AccountCurrencyData[currencyId]
end


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

0 comments on commit 995a03c

Please sign in to comment.