Skip to content

Commit

Permalink
Improved AB and AV flag animation responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
WobLight authored and MantisLord committed Feb 10, 2022
1 parent b400322 commit f5ee169
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/game/BattleGround/BattleGroundAB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ void BattleGroundAB::HandlePlayerClickedOnFlag(Player* player, GameObject* go)
if (event >= BG_AB_MAX_NODES) // not a node
return;

go->SendObjectDeSpawnAnim(go->GetObjectGuid());
ABNodes node = ABNodes(event);

player->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_PVP_ACTIVE_CANCELS);
Expand Down
2 changes: 2 additions & 0 deletions src/game/BattleGround/BattleGroundAV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ void BattleGroundAV::HandlePlayerClickedOnFlag(Player* player, GameObject* go)
uint8 event = (sBattleGroundMgr.GetGameObjectEventIndex(go->GetDbGuid())).event1;
if (event >= BG_AV_MAX_NODES) // not a node
return;

go->SendObjectDeSpawnAnim(go->GetObjectGuid());
AVNodeIds node = AVNodeIds(event);

switch ((sBattleGroundMgr.GetGameObjectEventIndex(go->GetDbGuid())).event2 % BG_AV_MAX_STATES)
Expand Down

0 comments on commit f5ee169

Please sign in to comment.