mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Fixed some problems with pets, port from tc1, by krz, thx Frankir.
--HG-- branch : trunk
This commit is contained in:
@@ -77,6 +77,9 @@ void PetAI::_stopAttack()
|
||||
|
||||
void PetAI::UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (!m_creature->isAlive())
|
||||
return;
|
||||
|
||||
Unit* owner = m_creature->GetCharmerOrOwner();
|
||||
|
||||
if(m_updateAlliesTimer <= diff)
|
||||
|
||||
Reference in New Issue
Block a user