mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Drop BG Flag when entering vehicle
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user