Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
PR: Fixed bug where zoning would reset the Fatigue, and it is not sup…
Browse files Browse the repository at this point in the history
…posed to
  • Loading branch information
m241dan committed Dec 24, 2019
1 parent 7a354eb commit c5af506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/globals/chocobo_digging.lua
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ local function updatePlayerDigCount(player, increment)
player:setCharVar('[DIG]DigCount', player:getCharVar('[DIG]DigCount') + increment)
end

player:setLocalVar('[DIG]LastDigTime', os.time())
player:setCharVar('[DIG]LastDigTime', os.time())
end


Expand All @@ -825,7 +825,7 @@ end

local function canDig(player)
local digCount = player:getCharVar('[DIG]DigCount')
local lastDigTime = player:getLocalVar('[DIG]LastDigTime')
local lastDigTime = player:getCharVar('[DIG]LastDigTime')
local zoneItemsDug = GetServerVariable('[DIG]ZONE'..player:getZoneID()..'_ITEMS')
local zoneInTime = player:getLocalVar('ZoneInTime')
local currentTime = os.time()
Expand Down

0 comments on commit c5af506

Please sign in to comment.