Quantcast WoWInterface - View Single Post - UnitRace("player") while in Dazar'alor or Mercenary PvP Mode
View Single Post
01-21-19, 05:42 PM   #1
LudiusMaximus
A Cliff Giant
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 71
UnitRace("player") while in Dazar'alor or Mercenary PvP Mode

I don't have a character to try this myself, so maybe somebody can help me out?

While in the respective parts of the Dazar'alor raid or while in Mercenary PvP Mode, is UnitRace("player") returning the swapped race or your original race?


I already found out that when your race gets swapped in the Caverns of Time by "Temporal Illusion", UnitRace("player") still returns your original race and not the one you have been swapped into.
Any ideas how to determine the race otherwise? I am already experimenting with

Code:
local modelFrame = CreateFrame("PlayerModel")
modelFrame:SetUnit("player")
local modelId = modelFrame:GetModelFileID()
But this is not reliable when Druid or Shaman shapeshifting is involved...

Thanks!
  Reply With Quote