From 06123fa3afda747789bffac9ad62e6418aa56bee Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 19 Jun 2009 19:30:32 -0500 Subject: *Add config option Arena.QueueAnnouncer.PlayerOnly --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 53b3d8cf569..e107eb90f55 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -212,7 +212,7 @@ void Unit::Update( uint32 p_time ) _UpdateSpells( p_time ); // update combat timer only for players and pets - if (isInCombat() && (GetTypeId() == TYPEID_PLAYER || ((Creature*)this)->isPet() || ((Creature*)this)->isCharmed())) + if (isInCombat() && IsControlledByPlayer()) { // Check UNIT_STAT_MELEE_ATTACKING or UNIT_STAT_CHASE (without UNIT_STAT_FOLLOW in this case) so pets can reach far away // targets without stopping half way there and running off. -- cgit v1.2.3