Core/Conditions: Refactor ConditionMgr internals to get rid of separate containers for some condition source types
Port From (https://github.com/TrinityCore/TrinityCore/commit/0b5406dd882c6d96bc1be6fd0a78375c3b316415)
This commit is contained in:
@@ -2436,7 +2436,7 @@ namespace Game
|
||||
{
|
||||
var gYard = range[(int)i];
|
||||
ConditionSourceInfo conditionSource = new(_player);
|
||||
if (!Global.ConditionMgr.IsObjectMeetToConditions(conditionSource, gYard.Conditions))
|
||||
if (!gYard.Conditions.Meets(conditionSource))
|
||||
continue;
|
||||
|
||||
graveyardIds.Add(i);
|
||||
|
||||
Reference in New Issue
Block a user