*Add config option Arena.QueueAnnouncer.PlayerOnly

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-06-19 19:30:32 -05:00
1 parent 2940aeb681
commit 06123fa3af
5 files changed
+22 -3

No files matched your search

+1 -1
View File
@@ -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.