From cb09262c1a1e428c6504b5e7a7b98209aa1a5d16 Mon Sep 17 00:00:00 2001 From: Biglad Date: Mon, 12 Oct 2009 13:49:28 +0100 Subject: * Fix bug with end of winterpgrasp, as zone is cleaned of corpses we must revive players if dead. --HG-- branch : trunk --- src/game/Wintergrasp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/game/Wintergrasp.cpp b/src/game/Wintergrasp.cpp index 97d0d74e6c6..de9be0fbcca 100644 --- a/src/game/Wintergrasp.cpp +++ b/src/game/Wintergrasp.cpp @@ -960,6 +960,12 @@ void OPvPWintergrasp::EndBattle() REMOVE_WARTIME_AURAS(*itr); REMOVE_TENACITY_AURA(*itr); (*itr)->CombatStop(true); + + // When WG ends the zone is cleaned including corpses, revive all players if dead + if (((*itr)->isDead()) || ((*itr)->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST))) + { + (*itr)->ResurrectPlayer(1.0f); + } } // destroyed all vehicles -- cgit v1.2.3