mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
[8627] Avoid not needed too oftent send update data, cleanups.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
9cb356851c
commit
023b13f348
9 changed files with 29 additions and 75 deletions
|
|
@ -287,10 +287,10 @@ void PetAI::UpdateAI(const uint32 diff)
|
|||
{
|
||||
m_creature->SetInFront(target);
|
||||
if (target->GetTypeId() == TYPEID_PLAYER)
|
||||
m_creature->SendUpdateToPlayer((Player*)target);
|
||||
m_creature->SendCreateUpdateToPlayer((Player*)target);
|
||||
|
||||
if (owner && owner->GetTypeId() == TYPEID_PLAYER)
|
||||
m_creature->SendUpdateToPlayer( (Player*)owner );
|
||||
m_creature->SendCreateUpdateToPlayer( (Player*)owner );
|
||||
}
|
||||
|
||||
m_creature->AddCreatureSpellCooldown(spell->m_spellInfo->Id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue