mirror of
https://github.com/parnic/LibDogTag-Unit-3.0.git
synced 2025-06-16 13:40:13 -05:00
- 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:
@ -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")
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user