@@ -1629,28 +1629,29 @@ end)
16291629-- 12.0 Midnight
16301630--
16311631
1632- function plugin :ENCOUNTER_TIMELINE_EVENT_ADDED (_ , eventInfo , initialState )
1632+ function plugin :ENCOUNTER_TIMELINE_EVENT_ADDED (_ , eventInfo )
16331633 -- Not Secrets
16341634 local eventID = eventInfo .id
16351635 local duration = eventInfo .duration
16361636 local source = eventInfo .source
1637- local state = initialState -- 0 = Running, 1 = Paused
1637+ local state = C_EncounterTimeline . GetEventState ( eventID ) -- 0 = Running, 1 = Paused
16381638
16391639 -- Secrets
1640- local spellId = eventInfo .tooltipSpellID
1641- local spellName = C_Spell . GetSpellName ( spellId )
1640+ local spellId = eventInfo .spellID
1641+ local spellName = eventInfo . spellName
16421642 local iconId = eventInfo .iconFileID
1643- local dispelType = eventInfo .dispelType
1644- local role = eventInfo .role
1645- local priority = eventInfo .priority
1643+ -- local dispelType = eventInfo.dispelType
1644+ -- local role = eventInfo.role
1645+ -- local priority = eventInfo.priority
16461646 self :BigWigs_StartBar (nil , nil , eventID , spellName , duration , iconId , nil , nil , true )
16471647
16481648 if state == 1 then -- Starting Paused
16491649 self :PauseSecretBar (eventID )
16501650 end
16511651end
16521652
1653- function plugin :ENCOUNTER_TIMELINE_EVENT_STATE_CHANGED (_ , eventID , newState )
1653+ function plugin :ENCOUNTER_TIMELINE_EVENT_STATE_CHANGED (_ , eventID )
1654+ local newState = C_EncounterTimeline .GetEventState (eventID ) -- 0 = Running, 1 = Paused
16541655 if newState == 0 then -- Resumed
16551656 self :ResumeSecretBar (eventID )
16561657 elseif newState == 1 then -- Paused
0 commit comments