mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Move GetPlayers from global method to map method.
For backwards compatibility for GetPlayersInMap(mapid, instid) use GetMapById(mapid, instid):GetPlayers()
This commit is contained in:
@@ -84,7 +84,6 @@ luaL_Reg GlobalMethods[] =
|
||||
{ "GetPlayerByName", &LuaGlobalFunctions::GetPlayerByName },
|
||||
{ "GetGameTime", &LuaGlobalFunctions::GetGameTime },
|
||||
{ "GetPlayersInWorld", &LuaGlobalFunctions::GetPlayersInWorld },
|
||||
{ "GetPlayersInMap", &LuaGlobalFunctions::GetPlayersInMap },
|
||||
{ "GetGuildByName", &LuaGlobalFunctions::GetGuildByName },
|
||||
{ "GetGuildByLeaderGUID", &LuaGlobalFunctions::GetGuildByLeaderGUID },
|
||||
{ "GetPlayerCount", &LuaGlobalFunctions::GetPlayerCount },
|
||||
@@ -1188,6 +1187,7 @@ ElunaRegister<Map> MapMethods[] =
|
||||
{ "GetInstanceId", &LuaMap::GetInstanceId },
|
||||
{ "GetInstanceData", &LuaMap::GetInstanceData },
|
||||
{ "GetPlayerCount", &LuaMap::GetPlayerCount },
|
||||
{ "GetPlayers", &LuaMap::GetPlayers },
|
||||
{ "GetMapId", &LuaMap::GetMapId },
|
||||
{ "GetAreaId", &LuaMap::GetAreaId },
|
||||
{ "GetHeight", &LuaMap::GetHeight },
|
||||
|
||||
Reference in New Issue
Block a user