mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10647] Show die animation at totem destroy.
Or any creature type die with linked unsummon. Original patch provided by Eggxp.
This commit is contained in:
parent
edbb840103
commit
fd7e86c79b
4 changed files with 14 additions and 8 deletions
|
|
@ -220,7 +220,7 @@ void Object::DestroyForPlayer( Player *target, bool anim ) const
|
|||
{
|
||||
MANGOS_ASSERT(target);
|
||||
|
||||
WorldPacket data(SMSG_DESTROY_OBJECT, 8);
|
||||
WorldPacket data(SMSG_DESTROY_OBJECT, 9);
|
||||
data << GetObjectGuid();
|
||||
data << uint8(anim ? 1 : 0); // WotLK (bool), may be despawn animation
|
||||
target->GetSession()->SendPacket(&data);
|
||||
|
|
@ -2084,4 +2084,4 @@ bool WorldObject::IsControlledByPlayer() const
|
|||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue