aboutsummaryrefslogtreecommitdiff
path: root/src/game/Wintergrasp.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-09-02 19:31:23 -0500
committermegamage <none@none>2009-09-02 19:31:23 -0500
commit0938b4dc868cd024d7cb98c1c7b7b33c5d67b145 (patch)
tree43d559bdcf62262b4d50645f3fc46ac45e4b9d06 /src/game/Wintergrasp.cpp
parent06325a9231f17382f03e94f4a5855d22615a923a (diff)
*Teleport losed team to Dalaran after wintergrasp battle. Thanks to Gyullo
--HG-- branch : trunk
Diffstat (limited to 'src/game/Wintergrasp.cpp')
-rw-r--r--src/game/Wintergrasp.cpp8
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);
}