Start the stopwatch when in combat

This commit is contained in:
Andrew Tomaka 2021-03-05 17:01:35 -05:00
parent ea47743b72
commit 8eacf7a68d
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -144,6 +144,20 @@ function events:PLAYER_LOGIN(...)
ChatFrame1:SetUserPlaced(true)
end
function events:PLAYER_REGEN_DISABLED(...)
StopwatchFrame:Show()
Stopwatch_Clear()
Stopwatch_Play()
end
function events:PLAYER_REGEN_ENABLED(...)
Stopwatch_Pause()
end
function events:PLAYER_DEAD(...)
Stopwatch_Pause()
end
function events:PLAYER_ROLES_ASSIGNED(...)
if MyAddon.amTankInParty() then MyAddon.markSelfSquare() end
end