summaryrefslogtreecommitdiff
path: root/src/server/scripts/Events/brewfest.cpp
diff options
context:
space:
mode:
authorKargatum <dowlandtop@yandex.com>2022-01-24 17:55:00 +0700
committerGitHub <noreply@github.com>2022-01-24 17:55:00 +0700
commit8b7df23f064f8c1c41aea222342b53f109c4e3b9 (patch)
tree6a7dc7d4bff6ef8c006b57c4110ece5cfe38c344 /src/server/scripts/Events/brewfest.cpp
parent12da792a901ffd75616a4d30661e97b2a1189ddf (diff)
feat(Core/Time): Implement saparated manager for game time (#8630)
Diffstat (limited to 'src/server/scripts/Events/brewfest.cpp')
-rw-r--r--src/server/scripts/Events/brewfest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/scripts/Events/brewfest.cpp b/src/server/scripts/Events/brewfest.cpp
index 55b46485e4..5996eed010 100644
--- a/src/server/scripts/Events/brewfest.cpp
+++ b/src/server/scripts/Events/brewfest.cpp
@@ -18,6 +18,7 @@
#include "CellImpl.h"
#include "GameEventMgr.h"
#include "GameObjectAI.h"
+#include "GameTime.h"
#include "GridNotifiers.h"
#include "Group.h"
#include "LFGMgr.h"
@@ -99,7 +100,7 @@ struct npc_brewfest_keg_reciver : public ScriptedAI
{
if (Aura* aur = player->GetAura(SPELL_RAM_AURA))
{
- int32 diff = aur->GetApplyTime() - (time(nullptr) - (HOUR * 18) + spellCooldown);
+ int32 diff = aur->GetApplyTime() - (GameTime::GetGameTime().count() - (HOUR * 18) + spellCooldown);
if (diff > 10) // aura applied later
return;