Ensure that all actions are compared to fixed point in time (ie. world update start)
This commit is contained in:
1 parent
00babf222a
commit
adae2fec26
43 files changed
+479
-185
No files matched your search
@@ -1836,7 +1836,7 @@ class spell_icc_sprit_alarm : public SpellScriptLoader
|
||||
}
|
||||
|
||||
if (GameObject* trap = GetCaster()->FindNearestGameObject(trapId, 5.0f))
|
||||
trap->SetRespawnTime(trap->GetGOInfo()->GetAutoCloseTime());
|
||||
trap->SetRespawnTime(trap->GetGOInfo()->GetAutoCloseTime() / IN_MILLISECONDS);
|
||||
|
||||
std::list<Creature*> wards;
|
||||
GetCaster()->GetCreatureListWithEntryInGrid(wards, NPC_DEATHBOUND_WARD, 150.0f);
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
#include "Player.h"
|
||||
#include "GameTime.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "SpellScript.h"
|
||||
@@ -327,7 +328,7 @@ struct boss_four_horsemen_baseAI : public BossAI
|
||||
}
|
||||
|
||||
Talk(SAY_DEATH);
|
||||
_timeDied = getMSTime();
|
||||
_timeDied = GameTime::GetGameTimeMS();
|
||||
for (Horseman boss : horsemen)
|
||||
{
|
||||
if (Creature* cBoss = getHorsemanHandle(boss))
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include "GameEventMgr.h"
|
||||
#include "GameTime.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "nexus.h"
|
||||
@@ -167,7 +168,7 @@ public:
|
||||
while (time[i] != 0)
|
||||
++i;
|
||||
|
||||
time[i] = sWorld->GetGameTime();
|
||||
time[i] = GameTime::GetGameTime();
|
||||
if (i == 2 && (time[2] - time[1] < 5) && (time[1] - time[0] < 5))
|
||||
++splitPersonality;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "GameTime.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "SpellScript.h"
|
||||
@@ -194,7 +195,7 @@ class boss_ignis : public CreatureScript
|
||||
|
||||
me->RemoveAuraFromStack(SPELL_STRENGHT);
|
||||
// Shattered Achievement
|
||||
time_t secondKill = sWorld->GetGameTime();
|
||||
time_t secondKill = GameTime::GetGameTime();
|
||||
if ((secondKill - _firstConstructKill) < 5)
|
||||
_shattered = true;
|
||||
_firstConstructKill = secondKill;
|
||||
|
||||
Reference in new issue
Block a user