Open Raid Lib updates: now is capable to track item cooldown
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user