Merge pull request #309 from Kitzunu/fix-wanderdistance-acore

Update CreatureMethods.h for ACore PR
This commit is contained in:
Rochet2
2020-04-09 21:10:52 +03:00
committed by GitHub

View File

@@ -423,7 +423,7 @@ namespace LuaCreature
*/
int GetWanderRadius(lua_State* L, Creature* creature)
{
#ifdef TRINITY
#if defined TRINITY || AZEROTHCORE
Eluna::Push(L, creature->GetWanderDistance());
#else
Eluna::Push(L, creature->GetRespawnRadius());