Core/Misc: Replace Time.UnixTime with GameTime.GetGameTime()
Port From (https://github.com/TrinityCore/TrinityCore/commit/e17e4e6f0700c7d950e1b2654c217ec8b28ae79e)
This commit is contained in:
@@ -621,7 +621,7 @@ namespace Game.Entities
|
||||
}
|
||||
else
|
||||
{
|
||||
pvpInfo.EndTimer = Time.UnixTime;
|
||||
pvpInfo.EndTimer = GameTime.GetGameTime();
|
||||
SetPvP(state);
|
||||
}
|
||||
}
|
||||
@@ -658,7 +658,7 @@ namespace Game.Entities
|
||||
else // in friendly area
|
||||
{
|
||||
if (IsPvP() && !HasPlayerFlag(PlayerFlags.InPVP) && pvpInfo.EndTimer == 0)
|
||||
pvpInfo.EndTimer = Time.UnixTime; // start toggle-off
|
||||
pvpInfo.EndTimer = GameTime.GetGameTime(); // start toggle-off
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user