mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 21:57:01 +01:00
*Update to Mangos 7136.
--HG-- branch : trunk
This commit is contained in:
@@ -146,11 +146,11 @@ void PetAI::UpdateAI(const uint32 diff)
|
||||
else
|
||||
m_updateAlliesTimer -= diff;
|
||||
|
||||
if (inCombat && i_pet.getVictim() == NULL)
|
||||
if (inCombat && !i_pet.getVictim())
|
||||
_stopAttack();
|
||||
|
||||
// i_pet.getVictim() can't be used for check in case stop fighting, i_pet.getVictim() clear at Unit death etc.
|
||||
if( i_pet.getVictim() != NULL )
|
||||
if( i_pet.getVictim() )
|
||||
{
|
||||
if( _needToStop() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user