From 2c3b1e57bda878863d086827822179cff3503630 Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 1 Nov 2012 05:55:27 +0000 Subject: [PATCH] - 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. --- modules/PlayerHealth.lua | 4 ++++ modules/TargetHealth.lua | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/modules/PlayerHealth.lua b/modules/PlayerHealth.lua index 3606776..63c7656 100644 --- a/modules/PlayerHealth.lua +++ b/modules/PlayerHealth.lua @@ -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 diff --git a/modules/TargetHealth.lua b/modules/TargetHealth.lua index 55c69e3..309c56f 100644 --- a/modules/TargetHealth.lua +++ b/modules/TargetHealth.lua @@ -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