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

This commit is contained in:
Shauren
2023-06-26 22:53:07 +02:00
parent 04bca04fb1
commit 81f0bf9525
4 changed files with 63 additions and 62 deletions

View File

@@ -1579,7 +1579,7 @@ public:
if (!wsExpressionEntry)
return false;
if (ConditionMgr::IsPlayerMeetingExpression(target, wsExpressionEntry))
if (ConditionMgr::IsMeetingWorldStateExpression(target->GetMap(), wsExpressionEntry))
handler->PSendSysMessage("Expression %u meet", expressionId);
else
handler->PSendSysMessage("Expression %u not meet", expressionId);