[7978] Pets now can be send to fight another target even if pet in combat with some unit.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
ApoC 2009-06-08 00:47:37 +02:00
parent ddf1525e40
commit 3f586feb25
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ void PetAI::MoveInLineOfSight(Unit *u)
void PetAI::AttackStart(Unit *u) void PetAI::AttackStart(Unit *u)
{ {
if( inCombat || !u || (m_creature->isPet() && ((Pet*)m_creature)->getPetType() == MINI_PET) ) if(!u || (m_creature->isPet() && ((Pet*)m_creature)->getPetType() == MINI_PET))
return; return;
if(m_creature->Attack(u,true)) if(m_creature->Attack(u,true))

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7977" #define REVISION_NR "7978"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__