Revert "feat(core): Ensure that all actions are compared to fixed point in time (#1236) (#1458)" (#1471)

This reverts commit 51b8773528.
This commit is contained in:
Nefertumm
2019-02-15 15:14:49 -03:00
committed by GitHub
parent 23e7ae6a2f
commit c15206fc15
108 changed files with 509 additions and 933 deletions
+1 -2
View File
@@ -11,7 +11,6 @@
#include "Map.h"
#include "Player.h"
#include "ObjectAccessor.h"
#include "GameTime.h"
#include "UnitEvents.h"
#include "SpellAuras.h"
#include "SpellMgr.h"
@@ -296,7 +295,7 @@ HostileReference* ThreatContainer::selectNextVictim(Creature* attacker, HostileR
HostileReference* currentRef = NULL;
bool found = false;
bool noPriorityTargetFound = false;
uint32 currTime = GameTime::GetGameTime();
uint32 currTime = sWorld->GetGameTime();
// pussywizard: currentVictim is needed to compare if threat was exceeded by 10%/30% for melee/range targets (only then switching current target)
if (currentVictim)