Merge branch 'master' into Playerbot
This commit is contained in:
@@ -192,6 +192,9 @@ void Arena::RemovePlayerAtLeave(Player* player)
|
||||
|
||||
void Arena::CheckWinConditions()
|
||||
{
|
||||
if (!sScriptMgr->OnBeforeArenaCheckWinConditions(this))
|
||||
return;
|
||||
|
||||
if (!GetAlivePlayersCountByTeam(TEAM_ALLIANCE) && GetPlayersCountByTeam(TEAM_HORDE))
|
||||
EndBattleground(TEAM_HORDE);
|
||||
else if (GetPlayersCountByTeam(TEAM_ALLIANCE) && !GetAlivePlayersCountByTeam(TEAM_HORDE))
|
||||
|
||||
@@ -35,7 +35,7 @@ protected:
|
||||
// For Logging purpose
|
||||
std::string ToString() const override
|
||||
{
|
||||
return Acore::StringFormatFmt("Damage done: {}, Healing done: {}, Killing blows: {}", DamageDone, HealingDone, KillingBlows);
|
||||
return Acore::StringFormat("Damage done: {}, Healing done: {}, Killing blows: {}", DamageDone, HealingDone, KillingBlows);
|
||||
}
|
||||
|
||||
uint8 PvPTeamId;
|
||||
|
||||
@@ -1107,7 +1107,7 @@ void BattlegroundQueue::SendJoinMessageArenaQueue(Player* leader, GroupQueueInfo
|
||||
|
||||
BattlegroundBracketId bracketId = bracketEntry->GetBracketId();
|
||||
auto bgName = bg->GetName();
|
||||
auto arenatype = Acore::StringFormat("%uv%u", ginfo->ArenaType, ginfo->ArenaType);
|
||||
auto arenatype = Acore::StringFormat("{}v{}", ginfo->ArenaType, ginfo->ArenaType);
|
||||
uint32 playersNeed = ArenaTeam::GetReqPlayersForType(ginfo->ArenaType);
|
||||
uint32 q_min_level = std::min(bracketEntry->minLevel, (uint32)80);
|
||||
uint32 q_max_level = std::min(bracketEntry->maxLevel, (uint32)80);
|
||||
|
||||
Reference in New Issue
Block a user