Skip to content

Commit

Permalink
More update triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Nov 13, 2024
1 parent a991b10 commit 16b2776
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,8 @@ RegisterUnitEvent( "UNIT_SPELLCAST_START", "player", "target", function( event,
Hekili:ForceUpdate( event )
if state.holds[ ability.key ] then Hekili:RemoveHold( ability.key, true ) end
end

Hekili:ForceUpdate( event, true )
end
end )

Expand Down Expand Up @@ -1333,6 +1335,8 @@ end )

-- TODO: This should be changed to stash this information and then commit it on next UNIT_SPELLCAST_START or UNIT_SPELLCAST_SUCCEEDED.
RegisterEvent( "UNIT_SPELLCAST_SENT", function ( event, unit, target_name, castID, spellID )
Hekili:ForceUpdate( event )

if target_name and UnitGUID( target_name ) then
state.cast_target = UnitGUID( target_name )
return
Expand Down

0 comments on commit 16b2776

Please sign in to comment.