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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user