mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 13:46:24 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user