From 47fc5defa26253ec2d21514412dc17ccdff0123f Mon Sep 17 00:00:00 2001 From: Biglad Date: Thu, 15 Oct 2009 16:41:46 +0100 Subject: * Force all buildings to resapwn at start of battle, todo prevent damage to buildings when its not war time --HG-- branch : trunk --- src/game/Wintergrasp.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); -- cgit v1.2.3