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