Core/Conditions: Replaced Player argument to world state expression checking with Map

Port From (https://github.com/TrinityCore/TrinityCore/commit/81f0bf9525cdf2e06b709a9c4259ba620138ebd0)
This commit is contained in:
hondacrx
2023-06-30 08:43:57 -04:00
parent b1c6c14f0e
commit 1edb0d07d3
3 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -1159,7 +1159,7 @@ namespace Game.Chat
if (wsExpressionEntry == null)
return false;
if (ConditionManager.IsPlayerMeetingExpression(target, wsExpressionEntry))
if (ConditionManager.IsMeetingWorldStateExpression(target.GetMap(), wsExpressionEntry))
handler.SendSysMessage($"Expression {expressionId} meet");
else
handler.SendSysMessage($"Expression {expressionId} not meet");