Open Raid updated

This commit is contained in:
Tercio Jose
2023-05-12 11:22:02 -03:00
parent 96a954c97c
commit 2c65744f51
3 changed files with 43 additions and 43 deletions
+3 -3
View File
@@ -504,7 +504,7 @@ local getSpellListAsHashTableFromSpellBook = function()
local tabEnd = offset + numSpells
for entryOffset = offset, tabEnd - 1 do
local spellType, spellId = GetSpellBookItemInfo(entryOffset, "player")
if (spellId and LIB_OPEN_RAID_COOLDOWNS_INFO[spellId] and LIB_OPEN_RAID_COOLDOWNS_INFO[spellId].raceid == playerRaceId) then
if (spellId and LIB_OPEN_RAID_COOLDOWNS_INFO[spellId] and LIB_OPEN_RAID_COOLDOWNS_INFO[spellId].raceid and LIB_OPEN_RAID_COOLDOWNS_INFO[spellId].raceid[playerRaceId]) then
spellId = C_SpellBook.GetOverrideSpell(spellId)
local spellName = GetSpellInfo(spellId)
local bIsPassive = IsPassiveSpell(spellId, "player")
@@ -593,8 +593,8 @@ 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
--type 10 is an item cooldown and does not have a class or raceid
if (spellData.class == playerClass or spellData.raceid == playerRaceId or CONST_ISITEM_BY_TYPEID[spellData.type]) 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 class or race id
if (spellData.class == playerClass or (spellData.raceid and spellData.raceid[playerRaceId]) or CONST_ISITEM_BY_TYPEID[spellData.type]) 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 CONST_ISITEM_BY_TYPEID[spellData.type]) then
LIB_OPEN_RAID_PLAYERCOOLDOWNS[spellID] = spellData
+1 -1
View File
@@ -37,7 +37,7 @@ if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not isExpansion_Dragonflight()) t
end
local major = "LibOpenRaid-1.0"
local CONST_LIB_VERSION = 99
local CONST_LIB_VERSION = 100
if (not LIB_OPEN_RAID_MAX_VERSION) then
LIB_OPEN_RAID_MAX_VERSION = CONST_LIB_VERSION
@@ -299,45 +299,45 @@ do
--maintanance: login into the new race and type /run Details.GenerateRacialSpellList()
--this command give a formated line to paste here
[312411] = {cooldown = 90, duration = 0, specs = {}, talent = false, charges = 1, raceid = 35, race = "Vulpera", class = "", type = 9}, --Bag of Tricks (Vulpera)
--[312370] = {cooldown = 600, duration = 0, specs = {}, talent = false, charges = 1, raceid = 35, race = "Vulpera", class = "", type = 9}, --Make Camp (Vulpera)
--[312372] = {cooldown = 3600, duration = 0, specs = {}, talent = false, charges = 1, raceid = 35, race = "Vulpera", class = "", type = 9}, --Return to Camp (Vulpera)
--[312425] = {cooldown = 300, duration = 0, specs = {}, talent = false, charges = 1, raceid = 35, race = "Vulpera", class = "", type = 9}, --Rummage Your Bag (Vulpera)
[274738] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = 36, race = "MagharOrc", class = "", type = 9}, --Ancestral Call (MagharOrc)
--[292752] = {cooldown = 432000, duration = 0, specs = {}, talent = false, charges = 1, raceid = 31, race = "ZandalariTroll", class = "", type = 9}, --Embrace of the Loa (ZandalariTroll)
--[281954] = {cooldown = 900, duration = 0, specs = {}, talent = false, charges = 1, raceid = 31, race = "ZandalariTroll", class = "", type = 9}, --Pterrordax Swoop (ZandalariTroll)
[291944] = {cooldown = 150, duration = 0, specs = {}, talent = false, charges = 1, raceid = 31, race = "ZandalariTroll", class = "", type = 9}, --Regeneratin' (ZandalariTroll)
[255654] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = 28, race = "HighmountainTauren", class = "", type = 9}, --Bull Rush (HighmountainTauren)
[260364] = {cooldown = 180, duration = 0, specs = {}, talent = false, charges = 1, raceid = 27, race = "Nightborne", class = "", type = 9}, --Arcane Pulse (Nightborne)
--[255661] = {cooldown = 600, duration = 0, specs = {}, talent = false, charges = 1, raceid = 27, race = "Nightborne", class = "", type = 9}, --Cantrips (Nightborne)
--[69046] = {cooldown = 1800, duration = 0, specs = {}, talent = false, charges = 1, raceid = 9, race = "Goblin", class = "", type = 9}, --Pack Hobgoblin (Goblin)
[69041] = {cooldown = 90, duration = 0, specs = {}, talent = false, charges = 1, raceid = 9, race = "Goblin", class = "", type = 9}, --Rocket Barrage (Goblin)
[69070] = {cooldown = 90, duration = 0, specs = {}, talent = false, charges = 1, raceid = 9, race = "Goblin", class = "", type = 9}, --Rocket Jump (Goblin)
[20549] = {cooldown = 90, duration = 0, specs = {}, talent = false, charges = 1, raceid = 6, race = "Tauren", class = "", type = 9}, --War Stomp (Tauren)
--[20577] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = 5, race = "Scourge", class = "", type = 9}, --Cannibalize (Scourge)
[7744] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = 5, race = "Scourge", class = "", type = 9}, --Will of the Forsaken (Scourge)
[20572] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = 2, race = "Orc", class = "", type = 9}, --Blood Fury (Orc)
[312924] = {cooldown = 180, duration = 0, specs = {}, talent = false, charges = 1, raceid = 37, race = "Mechagnome", class = "", type = 9}, --Hyper Organic Light Originator (Mechagnome)
--[312890] = {cooldown = 0, duration = 0, specs = {}, talent = false, charges = 1, raceid = 37, race = "Mechagnome", class = "", type = 9}, --Skeleton Pinkie (Mechagnome)
[287712] = {cooldown = 150, duration = 0, specs = {}, talent = false, charges = 1, raceid = 32, race = "KulTiran", class = "", type = 9}, --Haymaker (KulTiran)
[265221] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = 34, race = "DarkIronDwarf", class = "", type = 9}, --Fireblood (DarkIronDwarf)
--[265225] = {cooldown = 1800, duration = 0, specs = {}, talent = false, charges = 1, raceid = 34, race = "DarkIronDwarf", class = "", type = 9}, --Mole Machine (DarkIronDwarf)
--[259930] = {cooldown = 900, duration = 0, specs = {}, talent = false, charges = 1, raceid = 30, race = "LightforgedDraenei", class = "", type = 9}, --Forge of Light (LightforgedDraenei)
[255647] = {cooldown = 150, duration = 0, specs = {}, talent = false, charges = 1, raceid = 30, race = "LightforgedDraenei", class = "", type = 9}, --Light's Judgment (LightforgedDraenei)
[256948] = {cooldown = 180, duration = 0, specs = {}, talent = false, charges = 1, raceid = 29, race = "VoidElf", class = "", type = 9}, --Spatial Rift (VoidElf)
--[358733] = {cooldown = 1, duration = 0, specs = {}, talent = false, charges = 1, raceid = 52, race = "Dracthyr", class = "", type = 9}, --Glide (Dracthyr)
[368970] = {cooldown = 90, duration = 0, specs = {}, talent = false, charges = 1, raceid = 52, race = "Dracthyr", class = "", type = 9}, --Tail Swipe (Dracthyr)
[357214] = {cooldown = 90, duration = 0, specs = {}, talent = false, charges = 1, raceid = 52, race = "Dracthyr", class = "", type = 9}, --Wing Buffet (Dracthyr)
[107079] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = 25, race = "Pandaren", class = "", type = 9}, --Quaking Palm (Pandaren)
[68992] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = 22, race = "Worgen", class = "", type = 9}, --Darkflight (Worgen)
--[68996] = {cooldown = 1, duration = 0, specs = {}, talent = false, charges = 1, raceid = 22, race = "Worgen", class = "", type = 9}, --Two Forms (Worgen)
[26297] = {cooldown = 180, duration = 0, specs = {}, talent = false, charges = 1, raceid = 8, race = "Troll", class = "", type = 9}, --Berserking (Troll)
[20589] = {cooldown = 60, duration = 0, specs = {}, talent = false, charges = 1, raceid = 7, race = "Gnome", class = "", type = 9}, --Escape Artist (Gnome)
[232633] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = 10, race = "BloodElf", class = "", type = 9}, --Arcane Torrent (BloodElf)
[59752] = {cooldown = 180, duration = 0, specs = {}, talent = false, charges = 1, raceid = 1, race = "Human", class = "", type = 9}, --Will to Survive (Human)
[20594] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = 3, race = "Dwarf", class = "", type = 9}, --Stoneform (Dwarf)
[58984] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = 4, race = "NightElf", class = "", type = 9}, --Shadowmeld (NightElf)
[59542] = {cooldown = 180, duration = 0, specs = {}, talent = false, charges = 1, raceid = 11, race = "Draenei", class = "", type = 9}, --Gift of the Naaru (Draenei)
[312411] = {cooldown = 90, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[35] = true}, race = "Vulpera", class = "", type = 9}, --Bag of Tricks (Vulpera)
--[312370] = {cooldown = 600, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[35] = true}, race = "Vulpera", class = "", type = 9}, --Make Camp (Vulpera)
--[312372] = {cooldown = 3600, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[35] = true}, race = "Vulpera", class = "", type = 9}, --Return to Camp (Vulpera)
--[312425] = {cooldown = 300, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[35] = true}, race = "Vulpera", class = "", type = 9}, --Rummage Your Bag (Vulpera)
[274738] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[36] = true}, race = "MagharOrc", class = "", type = 9}, --Ancestral Call (MagharOrc)
--[292752] = {cooldown = 432000, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[31] = true}, race = "ZandalariTroll", class = "", type = 9}, --Embrace of the Loa (ZandalariTroll)
--[281954] = {cooldown = 900, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[31] = true}, race = "ZandalariTroll", class = "", type = 9}, --Pterrordax Swoop (ZandalariTroll)
[291944] = {cooldown = 150, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[31] = true}, race = "ZandalariTroll", class = "", type = 9}, --Regeneratin' (ZandalariTroll)
[255654] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[28] = true}, race = "HighmountainTauren", class = "", type = 9}, --Bull Rush (HighmountainTauren)
[260364] = {cooldown = 180, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[27] = true}, race = "Nightborne", class = "", type = 9}, --Arcane Pulse (Nightborne)
--[255661] = {cooldown = 600, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[27] = true}, race = "Nightborne", class = "", type = 9}, --Cantrips (Nightborne)
--[69046] = {cooldown = 1800, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[9] = true}, race = "Goblin", class = "", type = 9}, --Pack Hobgoblin (Goblin)
[69041] = {cooldown = 90, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[9] = true}, race = "Goblin", class = "", type = 9}, --Rocket Barrage (Goblin)
[69070] = {cooldown = 90, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[9] = true}, race = "Goblin", class = "", type = 9}, --Rocket Jump (Goblin)
[20549] = {cooldown = 90, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[6] = true}, race = "Tauren", class = "", type = 9}, --War Stomp (Tauren)
--[20577] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[5] = true}, race = "Scourge", class = "", type = 9}, --Cannibalize (Scourge)
[7744] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[5] = true}, race = "Scourge", class = "", type = 9}, --Will of the Forsaken (Scourge)
[20572] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[2] = true}, race = "Orc", class = "", type = 9}, --Blood Fury (Orc)
[312924] = {cooldown = 180, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[37] = true}, race = "Mechagnome", class = "", type = 9}, --Hyper Organic Light Originator (Mechagnome)
--[312890] = {cooldown = 0, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[37] = true}, race = "Mechagnome", class = "", type = 9}, --Skeleton Pinkie (Mechagnome)
[287712] = {cooldown = 150, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[32] = true}, race = "KulTiran", class = "", type = 9}, --Haymaker (KulTiran)
[265221] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[34] = true}, race = "DarkIronDwarf", class = "", type = 9}, --Fireblood (DarkIronDwarf)
--[265225] = {cooldown = 1800, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[34] = true}, race = "DarkIronDwarf", class = "", type = 9}, --Mole Machine (DarkIronDwarf)
--[259930] = {cooldown = 900, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[30] = true}, race = "LightforgedDraenei", class = "", type = 9}, --Forge of Light (LightforgedDraenei)
[255647] = {cooldown = 150, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[30] = true}, race = "LightforgedDraenei", class = "", type = 9}, --Light's Judgment (LightforgedDraenei)
[256948] = {cooldown = 180, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[29] = true}, race = "VoidElf", class = "", type = 9}, --Spatial Rift (VoidElf)
--[358733] = {cooldown = 1, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[52] = true, [70] = true}, race = "Dracthyr", class = "", type = 9}, --Glide (Dracthyr)
[368970] = {cooldown = 90, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[52] = true, [70] = true}, race = "Dracthyr", class = "", type = 9}, --Tail Swipe (Dracthyr)
[357214] = {cooldown = 90, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[52] = true, [70] = true}, race = "Dracthyr", class = "", type = 9}, --Wing Buffet (Dracthyr)
[107079] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[25] = true, [24] = true, [26] = true}, race = "Pandaren", class = "", type = 9}, --Quaking Palm (Pandaren)
[68992] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[22] = true}, race = "Worgen", class = "", type = 9}, --Darkflight (Worgen)
--[68996] = {cooldown = 1, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[22] = true}, race = "Worgen", class = "", type = 9}, --Two Forms (Worgen)
[26297] = {cooldown = 180, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[8] = true}, race = "Troll", class = "", type = 9}, --Berserking (Troll)
[20589] = {cooldown = 60, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[7] = true}, race = "Gnome", class = "", type = 9}, --Escape Artist (Gnome)
[232633] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[10] = true}, race = "BloodElf", class = "", type = 9}, --Arcane Torrent (BloodElf)
[59752] = {cooldown = 180, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[1] = true}, race = "Human", class = "", type = 9}, --Will to Survive (Human)
[20594] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[3] = true}, race = "Dwarf", class = "", type = 9}, --Stoneform (Dwarf)
[58984] = {cooldown = 120, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[4] = true}, race = "NightElf", class = "", type = 9}, --Shadowmeld (NightElf)
[59542] = {cooldown = 180, duration = 0, specs = {}, talent = false, charges = 1, raceid = {[11] = true}, race = "Draenei", class = "", type = 9}, --Gift of the Naaru (Draenei)
--interrupts
[6552] = {class = "WARRIOR", specs = {71, 72, 73}, cooldown = 15, silence = 4, talent = false, cooldownWithTalent = false, cooldownTalentId = false, type = 6, charges = 1}, --Pummel