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
@@ -1582,7 +1582,7 @@ namespace Game.Achievements
case ModifierTreeType.WorldStateExpression: // 67
WorldStateExpressionRecord worldStateExpression = CliDB.WorldStateExpressionStorage.LookupByKey(reqValue);
if (worldStateExpression != null)
return ConditionManager.IsPlayerMeetingExpression(referencePlayer, worldStateExpression);
return ConditionManager.IsMeetingWorldStateExpression(referencePlayer.GetMap(), worldStateExpression);
return false;
case ModifierTreeType.DungeonDifficulty: // 68
if (referencePlayer.GetMap().GetDifficultyID() != (Difficulty)reqValue)