View Single Post
11-30-19, 01:23 PM   #2
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
You need two things:
  1. https://wow.gamepedia.com/API_UnitReaction in which case the unitID ("player") and the unitID of the comparison.
  2. The global table FACTION_BAR_COLORS in which to pass the reaction number above.

Lua Code:
  1. local reaction = UnitReaction("target", "player")
  2. local reactionColor = FACTION_BAR_COLORS[reaction]
  Reply With Quote