diff options
author | Biglad <none@none> | 2009-10-15 16:41:46 +0100 |
---|---|---|
committer | Biglad <none@none> | 2009-10-15 16:41:46 +0100 |
commit | 47fc5defa26253ec2d21514412dc17ccdff0123f (patch) | |
tree | 93ec2814e8ddc23691d6a4bb1cc6c26bbfe5692e /src | |
parent | 7caac8a80554b4cc6cdc1e64b826a90901d4bbf6 (diff) |
* Force all buildings to resapwn at start of battle, todo prevent damage to buildings when its not war time
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Wintergrasp.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Wintergrasp.cpp b/src/game/Wintergrasp.cpp index 37ff0f6607f..dc247be4551 100644 --- a/src/game/Wintergrasp.cpp +++ b/src/game/Wintergrasp.cpp @@ -931,6 +931,11 @@ void OPvPWintergrasp::StartBattle() m_wartime = true; m_timer = sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_BATTLE_TIME) * MINUTE * IN_MILISECONDS; + // make sure all building are rebuild as battle starts + RebuildAllBuildings(); + // update all GOs make sure they have correct faction for wartime + UpdateAllWorldObject(); + // Add recruit Aura, Add Tenacity TeamCastSpell(m_defender, SPELL_RECRUIT); TeamCastSpell(OTHER_TEAM(m_defender), SPELL_RECRUIT); |