- Added Observer channel for Raid Tools, it only reports the cooldown/interrupt/death to you in your chat window.
- More updates on the new plugin Raid Check.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
local _table_remove = table.remove -- lua local
|
||||
local _rawget = rawget
|
||||
local _math_max = math.max
|
||||
local _math_floor = math.floor
|
||||
local _GetTime = GetTime
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -106,6 +107,12 @@
|
||||
end
|
||||
|
||||
--return the combat time in seconds
|
||||
function combate:GetFormatedCombatTime()
|
||||
local time = self:GetCombatTime()
|
||||
local m, s = _math_floor (time/60), _math_floor (time%60)
|
||||
return m, s
|
||||
end
|
||||
|
||||
function combate:GetCombatTime()
|
||||
if (self.end_time) then
|
||||
return _math_max (self.end_time - self.start_time, 0.1)
|
||||
|
||||
Reference in New Issue
Block a user