- Fixed PVP icon showing up as a green square for Pandaren who have not yet chosen a faction. This fix applies to TargetHealth and PlayerHealth, but not to DogTag text such as on the TargetInfo frame.

This commit is contained in:
Parnic
2012-11-01 05:55:27 +00:00
parent 7363f27d8d
commit 2c3b1e57bd
2 changed files with 8 additions and 0 deletions

View File

@ -1151,6 +1151,10 @@ function PlayerHealth.prototype:CheckPvP()
minx, maxx, miny, maxy = 0.05, 0.605, 0.015, 0.57
elseif UnitIsPVP(self.unit) then
pvpMode = UnitFactionGroup(self.unit)
if pvpMode == "Neutral" then
pvpMode = "FFA"
end
if pvpMode == "Alliance" then
minx, maxx, miny, maxy = 0.07, 0.58, 0.06, 0.57

View File

@ -994,6 +994,10 @@ function IceTargetHealth.prototype:CheckPvP()
elseif UnitIsPVP(self.unit) then
pvpMode = UnitFactionGroup(self.unit)
if pvpMode == "Neutral" then
pvpMode = "FFA"
end
if pvpMode == "Alliance" then
minx, maxx, miny, maxy = 0.07, 0.58, 0.06, 0.57
else