Start the stopwatch when in combat (#19)
This commit is contained in:
parent
ea47743b72
commit
1ae33d5082
1 changed files with 14 additions and 0 deletions
14
MyAddon.lua
14
MyAddon.lua
|
@ -144,6 +144,20 @@ function events:PLAYER_LOGIN(...)
|
||||||
ChatFrame1:SetUserPlaced(true)
|
ChatFrame1:SetUserPlaced(true)
|
||||||
end
|
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(...)
|
function events:PLAYER_ROLES_ASSIGNED(...)
|
||||||
if MyAddon.amTankInParty() then MyAddon.markSelfSquare() end
|
if MyAddon.amTankInParty() then MyAddon.markSelfSquare() end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue