Drop BG Flag when entering vehicle

--HG--
branch : trunk
This commit is contained in:
thenecromancer
2010-01-24 23:46:50 +01:00
parent 41fb791f1f
commit 9d59288b1d

View File

@@ -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);