Fix TC build

This commit is contained in:
Rochet2
2020-02-20 01:23:21 +02:00
parent 570a45b703
commit f50d94b4a8

View File

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