mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- 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:
@ -1152,6 +1152,10 @@ function PlayerHealth.prototype:CheckPvP()
|
|||||||
elseif UnitIsPVP(self.unit) then
|
elseif UnitIsPVP(self.unit) then
|
||||||
pvpMode = UnitFactionGroup(self.unit)
|
pvpMode = UnitFactionGroup(self.unit)
|
||||||
|
|
||||||
|
if pvpMode == "Neutral" then
|
||||||
|
pvpMode = "FFA"
|
||||||
|
end
|
||||||
|
|
||||||
if pvpMode == "Alliance" then
|
if pvpMode == "Alliance" then
|
||||||
minx, maxx, miny, maxy = 0.07, 0.58, 0.06, 0.57
|
minx, maxx, miny, maxy = 0.07, 0.58, 0.06, 0.57
|
||||||
else
|
else
|
||||||
|
@ -994,6 +994,10 @@ function IceTargetHealth.prototype:CheckPvP()
|
|||||||
elseif UnitIsPVP(self.unit) then
|
elseif UnitIsPVP(self.unit) then
|
||||||
pvpMode = UnitFactionGroup(self.unit)
|
pvpMode = UnitFactionGroup(self.unit)
|
||||||
|
|
||||||
|
if pvpMode == "Neutral" then
|
||||||
|
pvpMode = "FFA"
|
||||||
|
end
|
||||||
|
|
||||||
if pvpMode == "Alliance" then
|
if pvpMode == "Alliance" then
|
||||||
minx, maxx, miny, maxy = 0.07, 0.58, 0.06, 0.57
|
minx, maxx, miny, maxy = 0.07, 0.58, 0.06, 0.57
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user