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