1
0
Fork 0

Fixed a bug preventing Valor Points from resetting.

This commit is contained in:
Andrew Tomaka 2011-10-11 12:09:45 -04:00
parent 754ad92e27
commit 691540a108

View file

@ -264,13 +264,11 @@ end
function core:ResetValorPoints() function core:ResetValorPoints()
for realm, realmTable in pairs(self.db.global) do for realm, realmTable in pairs(self.db.global) do
for name in pairs(realmTable) do for name in pairs(realmTable) do
if self.vpResetTime ~= false then if self.db.global[realm][name].valorPoints.resetTime < time() then
if self.db.global[realm][name].valorPoints.resetTime < time() then self.db.global[realm][name].valorPoints = {
self.db.global[realm][name].valorPoints = { points = 0,
points = 0, resetTime = 0,
resetTime = 0, }
}
end
end end
end end
end end