fix(Core/Spells): On autoshot interrupt send proper packet to cancel autoshot clientside. (#6169)

- Closes #5734
- Closes chromiecraft/chromiecraft#454
This commit is contained in:
UltraNix
2021-06-03 16:30:26 +02:00
committed by GitHub
parent 40cf7b46d2
commit 62ae4b53e6

View File

@@ -21093,6 +21093,9 @@ void Player::SendAutoRepeatCancel(Unit* target)
WorldPacket data(SMSG_CANCEL_AUTO_REPEAT, target->GetPackGUID().size());
data << target->GetPackGUID(); // may be it's target guid
SendMessageToSet(&data, true);
// To properly cancel autoshot done by client
SendAttackSwingCancelAttack();
}
void Player::SendExplorationExperience(uint32 Area, uint32 Experience)