mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[10960] Send SMSG_DISMOUNT to client.
As know no any affect in work from it.
This commit is contained in:
parent
7828ee18ad
commit
3a99027a80
2 changed files with 6 additions and 2 deletions
|
|
@ -7651,7 +7651,11 @@ void Unit::Unmount()
|
||||||
RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_NOT_MOUNTED);
|
RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_NOT_MOUNTED);
|
||||||
|
|
||||||
SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID, 0);
|
SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID, 0);
|
||||||
RemoveFlag( UNIT_FIELD_FLAGS, UNIT_FLAG_MOUNT );
|
RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_MOUNT);
|
||||||
|
|
||||||
|
WorldPacket data(SMSG_DISMOUNT, 8);
|
||||||
|
data << GetPackGUID();
|
||||||
|
SendMessageToSet(&data, true);
|
||||||
|
|
||||||
// only resummon old pet if the player is already added to a map
|
// only resummon old pet if the player is already added to a map
|
||||||
// this prevents adding a pet to a not created map which would otherwise cause a crash
|
// this prevents adding a pet to a not created map which would otherwise cause a crash
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10959"
|
#define REVISION_NR "10960"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue