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;
|
return;
|
||||||
}
|
}
|
||||||
|
if (player->IsMounted())
|
||||||
|
{
|
||||||
|
player->Dismount();
|
||||||
|
player->RemoveAurasByType(SPELL_AURA_MOUNTED);
|
||||||
|
}
|
||||||
// Alliance Flag on ground
|
// 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)
|
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