LibPlayerSpells-1.0

52.9k Downloads

Request for lookup via provider spellId

ShmooDude opened this issue ยท 1 comments

commented

There doesn't seem to be any way to look up based on the providerId?

Ashamane's Frenzy for example, has a spellId of 210722 and applies aura 210723. However, the lookup is tied to the aura ID, meaning I can't look up information on Ashamane's Frenzy without knowing it's aura ID for the GetSpellInfo(spellId) function. Alternatively, I'd have to iterate through provider IDs from IterateSpells() and then look it up based on the returned spell ID that matches the provider ID I'm looking for.

Now, granted spells can apply multiple auras so it'd probably be best to make a new function. Something like GetProviderInfo(providerId) that returns the same information as GetSpellInfo() but as an array(s) in case of multiple provided spells.

commented

The providers are directly accessible through the LibPlayerSpells-1.0 object: /dump LibStub('LibPlayerSpells-1.0).__providers. The keys are auraIDs, the values are spellIDs or tables there of, if there are multiple providers for the same aura.