mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
* Force all buildings to resapwn at start of battle, todo prevent damage to buildings when its not war time
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user