HeroLib

HeroLib

2M Downloads

[Bug]: Player:HasTier(Tier, Pieces) is broken.

jrubimf opened this issue ยท 1 comments

commented

What version of HeroLib are you using?

10.1.7.03

What is the issue?

the function Player:HasTier, located in Equipment.lua is checking for the:

Cache.Persistent.Player.Class[3].

That's populated by:
Class = { UnitClassBase("player") },

UnitClassBase only returns have 2 returns.

https://wowpedia.fandom.com/wiki/API_UnitClass

commented

Cache.Persistent.Player.Class is populated by UnitClass(), not UnitClassBase(), as seen here:

Class = { UnitClass("player") },