From 9d59288b1dfda9f647b2d46f4ef48c879cd208c0 Mon Sep 17 00:00:00 2001 From: thenecromancer Date: Sun, 24 Jan 2010 23:46:50 +0100 Subject: Drop BG Flag when entering vehicle --HG-- branch : trunk --- src/game/Unit.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 2ef69144086..1c9afc1538a 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -15731,6 +15731,11 @@ void Unit::EnterVehicle(Vehicle *vehicle, int8 seatId) ((Player*)this)->StopCastingBindSight(); ((Player*)this)->Unmount(); ((Player*)this)->RemoveAurasByType(SPELL_AURA_MOUNTED); + + // drop flag at invisible in bg + if(((Player*)this)->InBattleGround()) + if(BattleGround *bg = ((Player*)this)->GetBattleGround()) + bg->EventPlayerDroppedFlag((Player*)this); } assert(!m_vehicle); -- cgit v1.2.3