Update PlayerMethods.h

TrinityCore : Moved CanSpeak() method to WorldSession class
This commit is contained in:
RedSkull-666
2020-02-28 23:00:30 +01:00
committed by GitHub
parent 264d4c0ba0
commit 042629ea61

View File

@@ -247,7 +247,11 @@ namespace LuaPlayer
*/
int CanSpeak(lua_State* L, Player* player)
{
#ifdef TRINITY
Eluna::Push(L, player->GetSession()->CanSpeak());
#else
Eluna::Push(L, player->CanSpeak());
#endif
return 1;
}