mirror of
https://github.com/Relintai/Relintais-Enemy-Kooldown-Tracker-TBC.git
synced 2024-11-14 10:37:32 +01:00
Cleanup on PLAYER_ENTER_WORLD done.
This commit is contained in:
parent
35b988f526
commit
adc10d23bb
14
Vect.lua
14
Vect.lua
@ -1,7 +1,8 @@
|
|||||||
|
|
||||||
--TODOS:
|
--TODOS:
|
||||||
--Player Entering World -> cleanup the db
|
|
||||||
--DR timers
|
--DR timers
|
||||||
|
--Way to show pet cds on the master
|
||||||
|
--Mark movable frames to know which is which
|
||||||
|
|
||||||
--"Globals"
|
--"Globals"
|
||||||
local aceDB = LibStub("AceDB-3.0")
|
local aceDB = LibStub("AceDB-3.0")
|
||||||
@ -144,7 +145,16 @@ function Vect:PLAYER_FOCUS_CHANGED()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Vect:PLAYER_ENTERING_WORLD()
|
function Vect:PLAYER_ENTERING_WORLD()
|
||||||
--TODO clean up the db
|
--DB cleanup
|
||||||
|
local t = GetTime();
|
||||||
|
for k, v in pairs(Vect.cds) do
|
||||||
|
for i, j in pairs(v) do
|
||||||
|
if j[2] < t then
|
||||||
|
--self:Print(Vect.cds[k][i][4]);
|
||||||
|
Vect.cds[k][i] = nil;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Vect:ZONE_CHANGED_NEW_AREA()
|
function Vect:ZONE_CHANGED_NEW_AREA()
|
||||||
|
Loading…
Reference in New Issue
Block a user