switched array management
René Welbers [01-26-16 - 18:41]
switched array management
diff --git a/PM_CA.lua b/PM_CA.lua
index 2ab1670..0fb3c54 100644
--- a/PM_CA.lua
+++ b/PM_CA.lua
@@ -83,9 +83,9 @@ function FTC.Stats:Update()
-- only save if we don't get three times the same amount of dps, and lastSavediff is more than one second ago and we're in fight
if self.tempVars.lastDpsCount <= 2 and lastSaveDiff >= 1000 and self.tempVars.inFight then
self.tempVars.lastSave = currentTime
- self.savedVariables.fights[timeStamp] = {
- target = currenTarget,
- dps = dpsForSaving
+ self.savedVariables.fights[currenTarget] = {
+ time = timeStamp,
+ dps = dpsForSaving
}
self.debug('saved dps', dps)
end