Merge pull request #313 from tikki100/Creature_event_on_spawn

Fixed Creature_Event_On_Spawn getting called twice
This commit is contained in:
Rochet2
2021-03-19 22:31:59 +02:00
committed by GitHub

View File

@@ -38,15 +38,16 @@ struct ElunaCreatureAI : ScriptedAI
void UpdateAI(uint32 diff) override void UpdateAI(uint32 diff) override
#endif #endif
{ {
#ifdef TRINITY
//Spawns are handled by Creature.cpp - in function Creature::Update()
#else
if (justSpawned) if (justSpawned)
{ {
justSpawned = false; justSpawned = false;
#ifdef TRINITY
JustAppeared();
#else
JustRespawned(); JustRespawned();
#endif
} }
#endif
if (!movepoints.empty()) if (!movepoints.empty())
{ {