From 7d9a71a6cfdc02823653d63cbf0d33ace8c60d2a Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 24 Mar 2009 09:36:50 -0600 Subject: [7523] Fixed: players will now drop flag in battleground if they cast immunity buff on themselves. Author: `win TODO: players who carry flag in bg are imune to immunity buffs casted by friendly players. (todo added to code). Bug: if paladin casts Hand of protection on flag carrier - flag will be dropped, but he should get "target is immune" message. Fixed: Do not call Battleground::Update for battleground template objects. Fixed: Do not allow immune player to click on object in battleground (not sure if this is correct in all cases). --HG-- branch : trunk --- src/game/BattleGroundMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/BattleGroundMgr.cpp') diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp index ce9eae6a5c8..53e466e9ca5 100644 --- a/src/game/BattleGroundMgr.cpp +++ b/src/game/BattleGroundMgr.cpp @@ -1178,7 +1178,7 @@ void BattleGroundMgr::Update(uint32 diff) // skip updating battleground template if( itr != m_BattleGrounds[i].end() ) ++itr; - for(itr = m_BattleGrounds[i].begin(); itr != m_BattleGrounds[i].end(); itr = next) + for(; itr != m_BattleGrounds[i].end(); itr = next) { next = itr; ++next; -- cgit v1.2.3