Skip to content

Commit

Permalink
Update Events.lua
Browse files Browse the repository at this point in the history
Remove EXECUTE_CHAT_LINE.
  • Loading branch information
Hekili authored Oct 26, 2023
1 parent 925627c commit aefc065
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1153,23 +1153,6 @@ C_Timer.After( 60, UpdateSpellQueueWindow )
do
local macroInfo = {}

RegisterEvent( "EXECUTE_CHAT_LINE", function( event, macroText )
if macroText then
local action, target = SecureCmdOptionParse( macroText )

local ability = action and class.abilities[ action ]

if ability and ability.key then
local m = macroInfo[ ability.key ] or {}

m.target = target and UnitGUID( target ) or UnitGUID( "target" )
m.time = GetTime()

macroInfo[ ability.key ] = m
end
end
end )

function Hekili:GetMacroCastTarget( spell, castTime, source )
local ability = class.abilities[ spell ]
local buffer = 0.1 + SpellQueueWindow
Expand Down

0 comments on commit aefc065

Please sign in to comment.