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:
parent
8f12eb0311
commit
e2bae754ef
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue