Core/Misc: Moved CanSpeak() method to WorldSession class

Port From (https://github.com/TrinityCore/TrinityCore/commit/93aa30f4474254b9db69025e7864a124028273c0)
This commit is contained in:
hondacrx
2020-02-09 16:58:40 -05:00
parent 0c919ad97d
commit 14b7ac6f67
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -166,7 +166,7 @@ namespace Game
lang = (Language)ModLangAuras.FirstOrDefault().GetMiscValue();
}
if (!sender.CanSpeak())
if (!CanSpeak())
{
string timeStr = Time.secsToTimeString((ulong)(m_muteTime - Time.UnixTime));
SendNotification(CypherStrings.WaitBeforeSpeaking, timeStr);
@@ -555,7 +555,7 @@ namespace Game
if (!GetPlayer().IsAlive())
return;
if (!GetPlayer().CanSpeak())
if (!CanSpeak())
{
string timeStr = Time.secsToTimeString((ulong)(m_muteTime - Time.UnixTime));
SendNotification(CypherStrings.WaitBeforeSpeaking, timeStr);