Skip to content

Commit

Permalink
Fix #2845
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Nov 7, 2023
1 parent ea51378 commit cd5a4a0
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Dragonflight/DruidFeral.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ local Hekili = _G[ addon ]
local class, state = Hekili.Class, Hekili.State

local FindUnitBuffByID = ns.FindUnitBuffByID
local GetPlayerAuraBySpellID = C_UnitAuras.GetPlayerAuraBySpellID

local strformat = string.format

Expand Down Expand Up @@ -957,6 +958,7 @@ end )


local last_bloodtalons_proc = 0
local last_bloodtalons_stack = 0

spec:RegisterCombatLogEvent( function( _, subtype, _, sourceGUID, sourceName, _, _, destGUID, destName, destFlags, _, spellID, spellName )

Expand All @@ -971,12 +973,25 @@ spec:RegisterCombatLogEvent( function( _, subtype, _, sourceGUID, sourceName, _
local mult = calculate_pmultiplier( spellID )
ns.saveDebuffModifier( spellID, mult )
ns.trackDebuff( spellID, destGUID, GetTime(), true )
elseif spellID == 145152 then -- Bloodtalons
last_bloodtalons_proc = GetTime()

end

elseif subtype == "SPELL_CAST_SUCCESS" and ( spellID == class.abilities.rip.id or spellID == class.abilities.primal_wrath.id ) then
rip_applied = true
end

if spellID == 145152 and ( subtype == "SPELL_AURA_APPLIED" or subtype == "SPELL_AURA_REFRESH" or subtype == "SPELL_AURA_APPLIED_DOSE" or subtype == "SPELL_AURA_REMOVED" or subtype == "SPELL_AURA_REMOVED_DOSE" ) then
local bloodtalons = GetPlayerAuraBySpellID( 145152 )
if not bloodtalons or not bloodtalons.applications or bloodtalons.applications == 0 then
last_bloodtalons_proc = 0
last_bloodtalons_stack = 0
else
if bloodtalons.applications > last_bloodtalons_stack then last_bloodtalons_proc = GetTime() end
last_bloodtalons_stack = bloodtalons.applications

if bloodtalons.applications < 3 then print( "count", last_bloodtalons_stack ) end
end
end
end
end )

Expand Down

0 comments on commit cd5a4a0

Please sign in to comment.