Skip to content

Commit

Permalink
Merge pull request #744 from Flamanis/TWW-unitbuff
Browse files Browse the repository at this point in the history
Fix UnitBuff in spec_augmentation
  • Loading branch information
Tercioo authored Jun 8, 2024
2 parents 463fdf6 + 7782c98 commit 74f5ea7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions functions/spec_augmentation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ local CONST_SPELLID_INFERNOBLESS = 410263
local UnitExists = UnitExists
local UnitIsUnit = UnitIsUnit
local GetSpellInfo = Details222.GetSpellInfo
local UnitAuraBySpellName = C_UnitAuras.GetAuraDataBySpellName

local augmentationFunctions = Details222.SpecHelpers[1473]
local augmentationCache = Details222.SpecHelpers[1473].augmentation_cache
Expand All @@ -28,14 +29,8 @@ local getAmountOfBuffsAppliedBySpellId = function(spellId)

for i, unitId in ipairs(Details222.UnitIdCache.PartyIds) do
if (UnitExists(unitId)) then
for o = 1, 40 do
local auraName = UnitBuff(unitId, o)
if (auraName == spellName) then
amountBuffs = amountBuffs + 1
break
elseif (not auraName) then
break
end
if UnitAuraBySpellName(unitId, spellName) then
amountBuffs = amountBuffs + 1
end
else
break
Expand Down

0 comments on commit 74f5ea7

Please sign in to comment.