Skip to content

Commit

Permalink
Augmentation improvements to FB?
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Sep 22, 2024
1 parent 1c4b5fa commit da07489
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
9 changes: 4 additions & 5 deletions Events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,7 @@ local function CLEU_HANDLER( event, timestamp, subtype, hideCaster, sourceGUID,
local amSource = ( sourceGUID == state.GUID )
local petSource = ( UnitExists( "pet" ) and sourceGUID == UnitGUID( "pet" ) )
local amTarget = ( destGUID == state.GUID )
local isSensePower = ( class.auras.sense_power_active and spellID == 361022 )

if not InCombatLockdown() and not ( amSource or petSource or amTarget ) then return end

Expand Down Expand Up @@ -1753,7 +1754,7 @@ local function CLEU_HANDLER( event, timestamp, subtype, hideCaster, sourceGUID,

local minion = ns.isMinion( sourceGUID )

if not ( amSource or petSource ) and not ( state.role.tank and destGUID == state.GUID ) and ( not minion or not countPets ) then
if not ( amSource or petSource or isSensePower ) and not ( state.role.tank and destGUID == state.GUID ) and ( not minion or not countPets ) then
return
end

Expand Down Expand Up @@ -1889,7 +1890,7 @@ local function CLEU_HANDLER( event, timestamp, subtype, hideCaster, sourceGUID,
end

-- Player/Minion Event
elseif ( amSource or petSource ) or ( countPets and minion ) or ( sourceGUID == destGUID and sourceGUID == UnitGUID( 'target' ) ) then
elseif ( amSource or petSource or isSensePower ) or ( countPets and minion ) or ( sourceGUID == destGUID and sourceGUID == UnitGUID( 'target' ) ) then
--[[ if aura_events[ subtype ] then
if subtype == "SPELL_CAST_SUCCESS" or state.GUID == destGUID then
if class.abilities[ spellID ] or class.auras[ spellID ] then
Expand Down Expand Up @@ -1926,7 +1927,7 @@ local function CLEU_HANDLER( event, timestamp, subtype, hideCaster, sourceGUID,

end

elseif ( amSource or petSource ) and aura.friendly then -- friendly effects
elseif ( amSource or petSource or isSensePower ) and aura.friendly then -- friendly effects
if subtype == 'SPELL_AURA_APPLIED' or subtype == 'SPELL_AURA_REFRESH' or subtype == 'SPELL_AURA_APPLIED_DOSE' then
ns.trackDebuff( spellID, destGUID, time, true )

Expand All @@ -1942,8 +1943,6 @@ local function CLEU_HANDLER( event, timestamp, subtype, hideCaster, sourceGUID,

end

local action = class.abilities[ spellID ]

if hostile and ( countDots and dmg_events[ subtype ] or direct_dmg_events[ subtype ] ) and not dmg_filtered[ spellID ] then
-- Don't wipe overkill targets in rested areas (it is likely a dummy).
-- Interrupt is actually overkill.
Expand Down
Loading

0 comments on commit da07489

Please sign in to comment.