mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
*Wintergrasp: Prevent server crash at battle end if all players are recruits, by Spp
--HG-- branch : trunk
This commit is contained in:
@@ -1134,7 +1134,8 @@ void OPvPWintergrasp::EndBattle()
|
||||
baseHonor += (m_customHonorReward[DESTROYED_TOWER] * m_towerDestroyedCount[OTHER_TEAM(team)]);
|
||||
baseHonor += (m_customHonorReward[INTACT_BUILDING] * intactNum);
|
||||
baseHonor += (m_customHonorReward[DAMAGED_BUILDING] * damagedNum);
|
||||
baseHonor /= playersWithRankNum;
|
||||
if (playersWithRankNum)
|
||||
baseHonor /= playersWithRankNum;
|
||||
}
|
||||
|
||||
// Revive players, remove auras and give rewards
|
||||
|
||||
Reference in New Issue
Block a user