*Wintergrasp: Fix server crash at battle end, by Spp
--HG-- branch : trunk
This commit is contained in:
@@ -967,9 +967,11 @@ void OPvPWintergrasp::EndBattle()
|
|||||||
for (PlayerSet::iterator itr = m_players[team].begin(); itr != m_players[team].end(); ++itr)
|
for (PlayerSet::iterator itr = m_players[team].begin(); itr != m_players[team].end(); ++itr)
|
||||||
{
|
{
|
||||||
// When WG ends the zone is cleaned including corpses, revive all players if dead
|
// When WG ends the zone is cleaned including corpses, revive all players if dead
|
||||||
if ((*itr)->isDead())
|
if ((*itr)->isDead())
|
||||||
|
{
|
||||||
(*itr)->ResurrectPlayer(1.0f);
|
(*itr)->ResurrectPlayer(1.0f);
|
||||||
|
ObjectAccessor::Instance().ConvertCorpseForPlayer((*itr)->GetGUID());
|
||||||
|
}
|
||||||
if ((*itr)->HasAura(SPELL_LIEUTENANT))
|
if ((*itr)->HasAura(SPELL_LIEUTENANT))
|
||||||
{
|
{
|
||||||
if (!sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_CUSTOM_HONOR))
|
if (!sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_CUSTOM_HONOR))
|
||||||
|
|||||||
Reference in New Issue
Block a user