mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix TC build
This commit is contained in:
@@ -41,7 +41,11 @@ struct ElunaCreatureAI : ScriptedAI
|
|||||||
if (justSpawned)
|
if (justSpawned)
|
||||||
{
|
{
|
||||||
justSpawned = false;
|
justSpawned = false;
|
||||||
|
#ifdef TRINITY
|
||||||
|
JustAppeared();
|
||||||
|
#else
|
||||||
JustRespawned();
|
JustRespawned();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!movepoints.empty())
|
if (!movepoints.empty())
|
||||||
@@ -140,12 +144,21 @@ struct ElunaCreatureAI : ScriptedAI
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef TRINITY
|
||||||
|
// Called when creature appears in the world (spawn, respawn, grid load etc...)
|
||||||
|
void JustAppeared() override
|
||||||
|
{
|
||||||
|
if (!sEluna->JustRespawned(me))
|
||||||
|
ScriptedAI::JustAppeared();
|
||||||
|
}
|
||||||
|
#else
|
||||||
// Called when creature is spawned or respawned (for reseting variables)
|
// Called when creature is spawned or respawned (for reseting variables)
|
||||||
void JustRespawned() override
|
void JustRespawned() override
|
||||||
{
|
{
|
||||||
if (!sEluna->JustRespawned(me))
|
if (!sEluna->JustRespawned(me))
|
||||||
ScriptedAI::JustRespawned();
|
ScriptedAI::JustRespawned();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Called at reaching home after evade
|
// Called at reaching home after evade
|
||||||
void JustReachedHome() override
|
void JustReachedHome() override
|
||||||
|
|||||||
Reference in New Issue
Block a user