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:
@@ -423,7 +423,11 @@ namespace LuaCreature
|
|||||||
*/
|
*/
|
||||||
int GetWanderRadius(lua_State* L, Creature* creature)
|
int GetWanderRadius(lua_State* L, Creature* creature)
|
||||||
{
|
{
|
||||||
|
#ifdef TRINITY
|
||||||
|
Eluna::Push(L, creature->GetWanderDistance());
|
||||||
|
#else
|
||||||
Eluna::Push(L, creature->GetRespawnRadius());
|
Eluna::Push(L, creature->GetRespawnRadius());
|
||||||
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1058,7 +1062,11 @@ auto const& threatlist = creature->getThreatManager().getThreatList();
|
|||||||
{
|
{
|
||||||
float dist = Eluna::CHECKVAL<float>(L, 2);
|
float dist = Eluna::CHECKVAL<float>(L, 2);
|
||||||
|
|
||||||
|
#ifdef TRINITY
|
||||||
|
creature->SetWanderDistance(dist);
|
||||||
|
#else
|
||||||
creature->SetRespawnRadius(dist);
|
creature->SetRespawnRadius(dist);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user