Various fixes and added professions/class trainers

This commit is contained in:
User
2026-09-04 17:55:10 -05:00
parent 3dfaee29ab
commit c3cf320b01
18 changed files with 938 additions and 56 deletions
+8
View File
@@ -1088,9 +1088,17 @@ function T:Show(pin)
spiritHealer="Spirit Healer",
stableMaster="Stable Master",
vendor="Vendor",
classTrainer="Class Trainer",
professionTrainer="Profession Trainer",
rareMob="[Rare]"
}
local permanentLabel=permanentLabels[pin.role]
-- Trainers refine the generic label with the specific class/profession, e.g.
-- "Warrior Trainer" / "Cooking Trainer".
if permanentLabel and (pin.role=="classTrainer" or pin.role=="professionTrainer") and type(pin.trainerKey)=="string" and pin.trainerKey~="" then
local key=pin.trainerKey
permanentLabel=string.upper(string.sub(key,1,1))..string.sub(key,2).." Trainer"
end
if permanentLabel then
tooltip:SetOwner(pin,"ANCHOR_CURSOR")
tooltip:ClearLines()