- Fixed Legion check in Status to use version 7.0 instead of 6.0

- Removed UnitIsTapped usage for the HostileColor color when in Legion/7.0
This commit is contained in:
Parnic
2016-05-24 05:36:09 +00:00
parent 411159ba6a
commit 261b041af8
2 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@ local L = DogTag_Unit.L
-- Pre 3.2.0 compatability support
local wow_320 = select(4, GetBuildInfo()) >= 30200
local wow_700 = select(4, GetBuildInfo()) >= 70000
local GetQuestDifficultyColor
if not wow_320 then
GetQuestDifficultyColor = _G.GetDifficultyColor
@ -544,7 +545,7 @@ DogTag:AddTag("Unit", "HostileColor", {
-- either enemy or friend, no violence
r, g, b = unpack(DogTag.__colors.civilian)
end
elseif (UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit)) or UnitIsDead(unit) then
elseif (not wow_700 and UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit)) or UnitIsDead(unit) then
r, g, b = unpack(DogTag.__colors.tapped)
else
local reaction = UnitReaction(unit, "player")

View File

@ -29,7 +29,7 @@ local wow_ver = select(4, GetBuildInfo())
local wow_400 = wow_ver >= 40000
local wow_500 = wow_ver >= 50000
local wow_600 = wow_ver >= 60000
local wow_700 = wow_ver >= 60000
local wow_700 = wow_ver >= 70000
local petHappinessEvent = "UNIT_HAPPINESS"
if wow_400 then
petHappinessEvent = "UNIT_POWER"