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
1 changed files with 5 additions and 7 deletions

View File

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