rendered paste bodyIndex: scripts/guard/guards.cpp
===================================================================
--- scripts/guard/guards.cpp (revision 263)
+++ scripts/guard/guards.cpp (working copy)
@@ -479,9 +479,9 @@
guard_contested(Creature *c) : guardAI(c) {}
void MoveInLineOfSight(Unit *who)
{
- if ( who->isAttackingPlayer() )
- {
- if(who->GetTypeId() == TYPEID_PLAYER || who->GetOwnerGUID() && GUID_HIPART(who->GetOwnerGUID())==HIGHGUID_PLAYER)
+ if ( who->isAttacking() )
+ {
+ if (who->GetTypeId() == TYPEID_PLAYER || who->GetOwnerGUID() && GUID_HIPART(who->GetOwnerGUID())==HIGHGUID_PLAYER)
{
m_creature->AddThreat(who, 0.0f);
if(Unit* owner = who->GetOwner())