Open Raid Lib updates: now is capable to track item cooldown

This commit is contained in:
Tercio Jose
2023-01-30 14:14:47 -03:00
parent b21abe6b2d
commit c474b762bb
7 changed files with 36 additions and 12 deletions
+3
View File
@@ -18,6 +18,7 @@ local CONST_COOLDOWN_TYPE_DEFENSIVE_TARGET = 3
local CONST_COOLDOWN_TYPE_DEFENSIVE_RAID = 4
local CONST_COOLDOWN_TYPE_UTILITY = 5
local CONST_COOLDOWN_TYPE_INTERRUPT = 6
local CONST_COOLDOWN_TYPE_ITEM = 10
--hold spellIds and which custom caches the spell is in
--map[spellId] = map[filterName] = true
@@ -179,6 +180,7 @@ local filterStringToCooldownType = {
["ofensive"] = CONST_COOLDOWN_TYPE_OFFENSIVE,
["utility"] = CONST_COOLDOWN_TYPE_UTILITY,
["interrupt"] = CONST_COOLDOWN_TYPE_INTERRUPT,
["item"] = CONST_COOLDOWN_TYPE_ITEM,
}
local filterStringToCooldownTypeReverse = {
@@ -188,6 +190,7 @@ local filterStringToCooldownTypeReverse = {
[CONST_COOLDOWN_TYPE_OFFENSIVE] = "ofensive",
[CONST_COOLDOWN_TYPE_UTILITY] = "utility",
[CONST_COOLDOWN_TYPE_INTERRUPT] = "interrupt",
[CONST_COOLDOWN_TYPE_ITEM] = "item",
}
local removeSpellFromCustomFilterCache = function(spellId, filterName)
+4 -2
View File
@@ -579,8 +579,10 @@ local updateCooldownAvailableList = function()
--build a list of all spells assigned as cooldowns for the player class
for spellID, spellData in pairs(LIB_OPEN_RAID_COOLDOWNS_INFO) do
if (spellData.class == playerClass or spellData.raceid == playerRaceId) then --need to implement here to get the racial as racial cooldowns does not carry a class
if (spellBookSpellList[spellID]) then
--type 10 is an item cooldown and does not have a class or raceid
if (spellData.class == playerClass or spellData.raceid == playerRaceId or spellData.type == 10) then --need to implement here to get the racial as racial cooldowns does not carry a class
--type 10 is an item cooldown and does not have a spellbook entry
if (spellBookSpellList[spellID] or spellData.type == 10) then
LIB_OPEN_RAID_PLAYERCOOLDOWNS[spellID] = spellData
end
end
+1 -1
View File
@@ -64,7 +64,7 @@ if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not isExpansion_Dragonflight()) t
end
local major = "LibOpenRaid-1.0"
local CONST_LIB_VERSION = 93
local CONST_LIB_VERSION = 94
if (not LIB_OPEN_RAID_MAX_VERSION) then
LIB_OPEN_RAID_MAX_VERSION = CONST_LIB_VERSION
@@ -195,7 +195,7 @@ do
[370511] = 1, --Refreshing Healing Potion
[371039] = 1, --Potion of Withering Vitality
[370607] = 1, --Aerated Mana Potion
[371024] = 1, --Elemental Potion of Power
[371024] = 1, --Elemental Potion of Power --querying cooldown with GetSpellCooldown(371024) gives the cooldown of both potions
[371028] = 1, --Elemental Potion of Ultimate Power
[371033] = 1, --Potion of Frozen Focus
[371125] = 1, --Potion of the Hushed Zephyr
@@ -256,6 +256,13 @@ do
-- 7 dispel
-- 8 crowd control
-- 9 racials
-- 10 items
--attack potions
[371024] = {cooldown = 300, duration = 30, specs = {}, talent = false, charges = 1, class = "", type = 10}, --Elemental Potion of Power
--defensive potions
[6262] = {cooldown = 60, duration = 0, specs = {}, talent = false, charges = 1, class = "", type = 10}, --Healthstone
[370511] = {cooldown = 300, duration = 0, specs = {}, talent = false, charges = 1, class = "", type = 10}, --Refreshing Healing Potion
--racials
--maintanance: login into the new race and type /run Details.GenerateRacialSpellList()
+1
View File
@@ -97,6 +97,7 @@ do
--Remove multi-spec entries for shaman guessing (Flamanis).
--More Demon hunter abilities added to be merged (Flamanis).
--Added duck polymorph to Mage CCs (Flamanis).
--Fixed offline player showing as party members in the /keys panel (Flamanis).
--Fixed an issue with some options not updating when the window is selected at the bottom right corner of the options panel (Flamanis).
+1 -1
View File
@@ -517,7 +517,7 @@ function segmentClass:resetar()
wipe(Details.cache_healing_group)
Details:UpdateParserGears()
if (not InCombatLockdown() and not UnitAffectingCombat("player")) then
if (not InCombatLockdown() and not UnitAffectingCombat("player") and false) then
--workarround for the "script run too long" issue while outside the combat lockdown
local cleargarbage = function()
collectgarbage()
+18 -7
View File
@@ -478,7 +478,7 @@ end
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Defensive: Raid",
desc = "Exanple: druid tranquility.",
desc = "Example: druid tranquility.",
},
{--filter: show target defensive cooldowns
@@ -489,7 +489,7 @@ end
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Defensive: Target",
desc = "Exanple: priest pain suppression.",
desc = "Example: priest pain suppression.",
},
{--filter: show personal defensive cooldowns
@@ -500,7 +500,7 @@ end
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Defensive: Personal",
desc = "Exanple: mage ice block.",
desc = "Example: mage ice block.",
},
{--filter: show ofensive cooldowns
@@ -511,7 +511,7 @@ end
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Offensive Cooldowns",
desc = "Exanple: priest power infusion.",
desc = "Example: priest power infusion.",
},
{--filter: show utility cooldowns
@@ -522,7 +522,7 @@ end
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Utility Cooldowns",
desc = "Exanple: druid roar.",
desc = "Example: druid roar.",
},
{--filter: show interrupt cooldowns
@@ -533,8 +533,19 @@ end
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Interrupt Cooldowns",
desc = "Exanple: rogue kick.",
},
desc = "Example: rogue kick.",
},
{--filter: item cooldowns
type = "toggle",
get = function() return Details.ocd_tracker.filters["item"] end,
set = function(self, fixedparam, value)
Details.ocd_tracker.filters["item"] = value
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Item Cooldowns",
desc = "Example: Healthstone.",
},
{type = "breakline"},