From e0595eed7aa95426606d3ad27f982e9bcf94dee5 Mon Sep 17 00:00:00 2001 From: ApoC Date: Mon, 8 Jun 2009 00:47:37 +0200 Subject: [PATCH] [7978] Pets now can be send to fight another target even if pet in combat with some unit. Signed-off-by: ApoC --- src/game/PetAI.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/PetAI.cpp b/src/game/PetAI.cpp index 7db5abfaa..cd0e1db02 100644 --- a/src/game/PetAI.cpp +++ b/src/game/PetAI.cpp @@ -63,7 +63,7 @@ void PetAI::MoveInLineOfSight(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; if(m_creature->Attack(u,true)) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index a3530270d..079dbeb06 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7977" + #define REVISION_NR "7978" #endif // __REVISION_NR_H__ -- 2.11.4.GIT