From 042629ea61350774357ba56e7733ae3a9e7de208 Mon Sep 17 00:00:00 2001 From: RedSkull-666 <60255796+RedSkull-666@users.noreply.github.com> Date: Fri, 28 Feb 2020 23:00:30 +0100 Subject: [PATCH] Update PlayerMethods.h TrinityCore : Moved CanSpeak() method to WorldSession class --- PlayerMethods.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PlayerMethods.h b/PlayerMethods.h index 407cb1f..fee9473 100644 --- a/PlayerMethods.h +++ b/PlayerMethods.h @@ -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; }