From 16b27764fe77360e0e1f7be917d348a62fd77359 Mon Sep 17 00:00:00 2001 From: Hekili Date: Wed, 13 Nov 2024 11:28:48 -1000 Subject: [PATCH] More update triggers --- Events.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Events.lua b/Events.lua index 7ce5127c3..419af5caa 100644 --- a/Events.lua +++ b/Events.lua @@ -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 ) @@ -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