All pastes #914882 Raw Edit

Someone

public text v1 · immutable
#914882 ·published 2008-02-23 08:22 UTC
rendered paste body
Index: 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())