fix(Core/Battleground): Warsong flags can be picked up while mounted (#2067)

* Fixed Mount Bug (https://github.com/azerothcore/azerothcore-wotlk/issues/2065)

* DisMount Player while Pickedup Flag
This commit is contained in:
ArashGorge
2019-07-20 05:09:13 +04:30
committed by Poszer
parent 8f12eb0311
commit e2bae754ef

View File

@@ -271,7 +271,11 @@ void BattlegroundWS::EventPlayerClickedOnFlag(Player* player, GameObject* gameOb
}
return;
}
if (player->IsMounted())
{
player->Dismount();
player->RemoveAurasByType(SPELL_AURA_MOUNTED);
}
// Alliance Flag on ground
if (GetFlagState(TEAM_ALLIANCE) == BG_WS_FLAG_STATE_ON_GROUND && player->IsWithinDistInMap(gameObject, 10.0f) && gameObject->GetEntry() == BG_OBJECT_A_FLAG_GROUND_WS_ENTRY)
{