Core/Criteria: Implemented worldstate requirements for criteria updates
Port From (https://github.com/TrinityCore/TrinityCore/commit/919ada8d94a321d743bf581673b28b810780fc7e)
This commit is contained in:
@@ -892,6 +892,10 @@ namespace Game.Achievements
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (criteria.Entry.EligibilityWorldStateID != 0)
|
||||||
|
if (Global.WorldStateMgr.GetValue(criteria.Entry.EligibilityWorldStateID, referencePlayer.GetMap()) != criteria.Entry.EligibilityWorldStateValue)
|
||||||
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user