Skip to content

Commit a13bc63

Browse files
committed
Warlock fixes
1 parent e8a0380 commit a13bc63

4 files changed

Lines changed: 19 additions & 6 deletions

File tree

Libs/LibRaidStatus/LibRaidStatus.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
local major = "LibRaidStatus-1.0"
3-
local CONST_LIB_VERSION = 15
3+
local CONST_LIB_VERSION = 16
44
LIB_RAID_STATUS_CAN_LOAD = false
55

66
--declae the library within the LibStub

Libs/LibRaidStatus/ThingsToMantain.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ LIB_RAID_STATUS_COOLDOWNS_INFO = {
629629
[30283] = {cooldown = 60, duration = 3, talent = false, charges = 1, class = "WARLOCK", type = 5}, --Shadowfury
630630
[333889] = {cooldown = 180, duration = 15, talent = false, charges = 1, class = "WARLOCK", type = 5}, --Fel Domination
631631
--[6789] = {cooldown = 45, duration = 3, talent = 19291, charges = 1, class = "WARLOCK", type = 5}, --Mortal Coil (talent)
632+
[5484] = {cooldown = 40, duration = 20, talent = 23465, charges = 1, class = "WARLOCK", type = 5}, --Howl of Terror (talent)
632633

633634
--> shaman
634635
[198067] = {cooldown = 150, duration = 30, talent = false, charges = 1, class = "SHAMAN", type = 1}, --Fire Elemental

boot.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
local version, build, date, tocversion = GetBuildInfo()
88

9-
_detalhes.build_counter = 8501
10-
_detalhes.alpha_build_counter = 8501 --if this is higher than the regular counter, use it instead
9+
_detalhes.build_counter = 8513
10+
_detalhes.alpha_build_counter = 8513 --if this is higher than the regular counter, use it instead
1111
_detalhes.dont_open_news = true
1212
_detalhes.game_version = version
1313
_detalhes.userversion = version .. _detalhes.build_counter
@@ -31,6 +31,11 @@ do
3131
local Loc = _G.LibStub("AceLocale-3.0"):GetLocale( "Details" )
3232

3333
local news = {
34+
{"v9.0.5.8502.144", "May 21th, 2021"},
35+
"Added options to change the color of each team during an arena match.",
36+
"Fixed One Segment Battleground.",
37+
"Fixed an error with Howl of Terror on Demo Warlocks.",
38+
3439
{"v9.0.5.8501.144", "May 17th, 2021"},
3540
"Complete overhaul and rerritten on Fade In and Out animations, this should fix all bugs related to animations not being consistent.",
3641
"Complete overhaul on the broadcaster tool for arenas 'Current DPS'. It shows now a bar indicating the dps of both teams.",

core/gears.lua

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ local UnitGUID = UnitGUID
66
local UnitGroupRolesAssigned = DetailsFramework.UnitGroupRolesAssigned
77
local select = select
88
local floor = floor
9-
109
local GetNumGroupMembers = GetNumGroupMembers
1110

11+
local CONST_INSPECT_ACHIEVEMENT_DISTANCE = 1 --Compare Achievements, 28 yards
12+
1213
local ItemUpgradeInfo = LibStub ("LibItemUpgradeInfo-1.0")
1314
--local LibGroupInSpecT = LibStub ("LibGroupInSpecT-1.1") --disabled due to classic wow
1415
local ItemUpgradeInfo
@@ -1906,7 +1907,7 @@ function ilvl_core:CalcItemLevel (unitid, guid, shout)
19061907
unitid = unitid [1]
19071908
end
19081909

1909-
if (CheckInteractDistance (unitid, 1)) then
1910+
if (unitid and CanInspect(unitid) and UnitPlayerControlled(unitid) and CheckInteractDistance(unitid, CONST_INSPECT_ACHIEVEMENT_DISTANCE)) then
19101911

19111912
--> 16 = all itens including main and off hand
19121913
local item_amount = 16
@@ -2049,11 +2050,17 @@ end
20492050

20502051
function ilvl_core:GetItemLevel (unitid, guid, is_forced, try_number)
20512052

2053+
--disable for timewalk wow ~timewalk
2054+
if (DetailsFramework.IsTimewalkWoW()) then
2055+
return
2056+
end
2057+
20522058
--> ddouble check
20532059
if (not is_forced and (UnitAffectingCombat ("player") or InCombatLockdown())) then
20542060
return
20552061
end
2056-
if (not unitid or not CanInspect (unitid) or not CheckInteractDistance (unitid, 1)) then
2062+
2063+
if (not unitid or not CanInspect(unitid) or not UnitPlayerControlled(unitid) or not CheckInteractDistance(unitid, CONST_INSPECT_ACHIEVEMENT_DISTANCE)) then
20572064
if (is_forced) then
20582065
try_number = try_number or 0
20592066
if (try_number > 18) then

0 commit comments

Comments
 (0)