diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index cd15d63e6..ff0f778c3 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -9860,11 +9860,11 @@ bool Unit::SelectHostilTarget() // it in combat but attacker not make any damage and not enter to aggro radius to have record in threat list // for example at owner command to pet attack some far away creature // Note: creature not have targeted movement generator but have attacker in this case - if( GetMotionMaster()->GetCurrentMovementGeneratorType() != TARGETED_MOTION_TYPE ) + if (GetMotionMaster()->GetCurrentMovementGeneratorType() != TARGETED_MOTION_TYPE || hasUnitState(UNIT_STAT_FOLLOW)) { for(AttackerSet::const_iterator itr = m_attackers.begin(); itr != m_attackers.end(); ++itr) { - if( (*itr)->IsInMap(this) && (*itr)->isTargetableForAttack() && (*itr)->isInAccessablePlaceFor((Creature*)this) ) + if ((*itr)->IsInMap(this) && (*itr)->isTargetableForAttack() && (*itr)->isInAccessablePlaceFor((Creature*)this)) return false; } } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8e2cb53d0..9a26db886 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 "8322" + #define REVISION_NR "8323" #endif // __REVISION_NR_H__