Skip to content

Commit

Permalink
current draft for primal storm pets
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriun committed Oct 10, 2023
1 parent 59e109d commit 3588c2e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 670 deletions.
17 changes: 17 additions & 0 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,23 @@ function R:IsAttemptAllowed(item)
return false
end

local requiredAuraFound = false
local auraToCheck = "Elementally Imbued"
local auraSpellIdToFind = item.requiredAuraID
if item.requiresAura then
local unit = "target"
AuraUtil.ForEachAura(unit, "HELPFUL", nil, function(name, _, _, _, _, _, _, _, _, spellId)
if name == auraToCheck and spellId == auraSpellIdToFind then
requiredAuraFound = true
Rarity:Debug("Required aura found for item: " .. item.name)
return true
end
end)
if not requiredAuraFound then
Rarity:Debug("Required aura NOT found for item: " .. item.name)
end
end

local activeCovenantID = C_Covenants.GetActiveCovenantID()
if item.requiresCovenant and item.requiredCovenantID and activeCovenantID ~= item.requiredCovenantID then
local activeCovenantData = C_Covenants.GetCovenantData(activeCovenantID)
Expand Down
2 changes: 2 additions & 0 deletions DB/Item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ local Item = {
worldQuestId = false,
pickpocket = false,
requiresCompletedQuestId = false,
requiresAura = false,
requiredAuraID = false,
-- Populated fields (SavedVariables)
attempts = false,
lastAttempts = false,
Expand Down
Loading

0 comments on commit 3588c2e

Please sign in to comment.