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 ee62f78
Show file tree
Hide file tree
Showing 2 changed files with 271 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 ee62f78

Please sign in to comment.