mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[12661] Implemented SMSG_PLAY_ONE_SHOT_ANIM_KIT packet
This commit is contained in:
parent
46d4f07052
commit
ea6eef5a13
5 changed files with 14 additions and 2 deletions
|
|
@ -8241,12 +8241,20 @@ MountCapabilityEntry const* Unit::GetMountCapability(uint32 mountType) const
|
|||
if (mountCapability->RequiredSpell && (GetTypeId() != TYPEID_PLAYER || !(Player*)(this)->HasSpell(mountCapability->RequiredSpell)))
|
||||
continue;
|
||||
|
||||
return mountCapability;
|
||||
return mountCapability;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void Unit::PlayOneShotAnimKit(uint32 id)
|
||||
{
|
||||
WorldPacket data(SMSG_PLAY_ONE_SHOT_ANIM_KIT, 7+2);
|
||||
data << GetPackGUID();
|
||||
data << uint16(id);
|
||||
SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
void Unit::SetInCombatWith(Unit* enemy)
|
||||
{
|
||||
Unit* eOwner = enemy->GetCharmerOrOwnerOrSelf();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue