mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
feat(Core/Time): Implement saparated manager for game time (#8630)
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "Cell.h"
|
||||
#include "CellImpl.h"
|
||||
#include "Chat.h"
|
||||
#include "GameTime.h"
|
||||
#include "GridNotifiers.h"
|
||||
#include "Group.h"
|
||||
#include "InstanceScript.h"
|
||||
@@ -2250,12 +2251,12 @@ class spell_gen_turkey_marker : public AuraScript
|
||||
{
|
||||
if (GetStackAmount() > stackAmount)
|
||||
{
|
||||
_applyTimes.push_back(World::GetGameTimeMS());
|
||||
_applyTimes.push_back(GameTime::GetGameTimeMS().count());
|
||||
stackAmount++;
|
||||
}
|
||||
|
||||
// pop stack if it expired for us
|
||||
if (_applyTimes.front() + GetMaxDuration() < World::GetGameTimeMS())
|
||||
if (_applyTimes.front() + GetMaxDuration() < GameTime::GetGameTimeMS().count())
|
||||
{
|
||||
stackAmount--;
|
||||
ModStackAmount(-1, AURA_REMOVE_BY_EXPIRE);
|
||||
|
||||
Reference in New Issue
Block a user