diff options
Diffstat (limited to 'src/game/Wintergrasp.cpp')
-rw-r--r-- | src/game/Wintergrasp.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/Wintergrasp.cpp b/src/game/Wintergrasp.cpp index 683078b5e64..e53a4b0b76f 100644 --- a/src/game/Wintergrasp.cpp +++ b/src/game/Wintergrasp.cpp @@ -904,6 +904,14 @@ void OPvPWintergrasp::EndBattle() } } + TeamId loser = OTHER_TEAM(m_defender); + for(PlayerSet::iterator itr = m_players[loser].begin(); itr != m_players[loser].end();) + { + Player *plr = *itr; + ++itr; + plr->CastSpell(plr, SPELL_TELEPORT_DALARAN, true); + } + // remove auras from players who are not online CharacterDatabase.PExecute("DELETE FROM character_aura WHERE spell IN (%u,%u,%u)", SPELL_RECRUIT, SPELL_CORPORAL, SPELL_LIEUTENANT); } |