Fixed some problems with pets, port from tc1, by krz, thx Frankir.

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2010-01-16 19:11:32 +03:00
parent e031df23fc
commit 706718b28c
4 changed files with 18 additions and 3 deletions

View File

@@ -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)