Core/Achievements: Update CriteriaType enum
Port From (https://github.com/TrinityCore/TrinityCore/commit/0a83f748766c49775d76412d2b98bb9b9dc8c4df)
This commit is contained in:
@@ -776,7 +776,7 @@ namespace Game.BattleGrounds
|
||||
// TODO: lose honor xp
|
||||
}
|
||||
|
||||
player.UpdateCriteria(CriteriaTypes.WinBg, player.GetMapId());
|
||||
player.UpdateCriteria(CriteriaType.WinBattleground, player.GetMapId());
|
||||
if (!guildAwarded)
|
||||
{
|
||||
guildAwarded = true;
|
||||
@@ -785,7 +785,7 @@ namespace Game.BattleGrounds
|
||||
{
|
||||
Guild guild = Global.GuildMgr.GetGuildById(guildId);
|
||||
if (guild)
|
||||
guild.UpdateCriteria(CriteriaTypes.WinBg, player.GetMapId(), 0, 0, null, player);
|
||||
guild.UpdateCriteria(CriteriaType.WinBattleground, player.GetMapId(), 0, 0, null, player);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -802,7 +802,7 @@ namespace Game.BattleGrounds
|
||||
|
||||
player.SendPacket(pvpMatchComplete);
|
||||
|
||||
player.UpdateCriteria(CriteriaTypes.CompleteBattleground, player.GetMapId());
|
||||
player.UpdateCriteria(CriteriaType.ParticipateInBattleground, player.GetMapId());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user