Fixed a bug preventing Valor Points from resetting.
This commit is contained in:
parent
754ad92e27
commit
691540a108
1 changed files with 5 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue