aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2014-01-11 17:15:34 +0100
committerjackpoz <giacomopoz@gmail.com>2014-01-11 17:18:36 +0100
commit086622bfc118e81c0f5c18adf4752f439777a44d (patch)
tree259b47f420bfebe8e7e9a548aa7b53a2d3b327dc /src
parent6f6ad952b907cdbb7d4b4e33f972d60ed2e9fdf2 (diff)
Core/Battlegrounds: Fix offline players not being resurrected when Battleground ends
Fixes #7081
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Battlegrounds/Battleground.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp
index 58aba1429af..3fcfab81c73 100644
--- a/src/server/game/Battlegrounds/Battleground.cpp
+++ b/src/server/game/Battlegrounds/Battleground.cpp
@@ -976,6 +976,8 @@ void Battleground::RemovePlayerAtLeave(uint64 guid, bool Transport, bool SendPac
player->SpawnCorpseBones();
}
}
+ else // try to resurrect the offline player. If he is alive nothing will happen
+ sObjectAccessor->ConvertCorpseForPlayer(guid);
RemovePlayer(player, guid, team); // BG subclass specific code