Core/Criteria: Add all values of CriteriaFailEvent

Port From (https://github.com/TrinityCore/TrinityCore/commit/4b6ddfbbccf7dade8292331c860209f45945fa00)
This commit is contained in:
hondacrx
2021-06-04 13:59:21 -04:00
parent 9621a951f4
commit 93f8c09364
8 changed files with 43 additions and 40 deletions
+2 -2
View File
@@ -917,7 +917,7 @@ namespace Game.BattleGrounds
player.SetBGTeam(0);
// remove all criterias on bg leave
player.ResetCriteria(CriteriaCondition.BgMap, GetMapId(), true);
player.ResetCriteria(CriteriaFailEvent.LeaveBattleground, GetMapId(), true);
if (Transport)
player.TeleportToBGEntryPoint();
@@ -1066,7 +1066,7 @@ namespace Game.BattleGrounds
}
// reset all map criterias on map enter
player.ResetCriteria(CriteriaCondition.BgMap, GetMapId(), true);
player.ResetCriteria(CriteriaFailEvent.LeaveBattleground, GetMapId(), true);
// setup BG group membership
PlayerAddedToBGCheckIfBGIsRunning(player);