diff options
| author | Biglad <none@none> | 2009-10-12 13:49:28 +0100 |
|---|---|---|
| committer | Biglad <none@none> | 2009-10-12 13:49:28 +0100 |
| commit | cb09262c1a1e428c6504b5e7a7b98209aa1a5d16 (patch) | |
| tree | 83025486314c6687af134a775fa490667cf1fc04 | |
| parent | 1210b6f2849d0fbfcc5581fa2ee18fc7e72f3f6e (diff) | |
* Fix bug with end of winterpgrasp, as zone is cleaned of corpses we must revive players if dead.
--HG--
branch : trunk
| -rw-r--r-- | src/game/Wintergrasp.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
