diff options
author | thenecromancer <none@none> | 2010-01-24 23:46:50 +0100 |
---|---|---|
committer | thenecromancer <none@none> | 2010-01-24 23:46:50 +0100 |
commit | 9d59288b1dfda9f647b2d46f4ef48c879cd208c0 (patch) | |
tree | b7073a7682dfd3ebf29aac7ddd5fc48b6f18a071 /src/game/Unit.cpp | |
parent | 41fb791f1fa51a9db03192c9fc1c106e52bb3b51 (diff) |
Drop BG Flag when entering vehicle
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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); |