All pastes #910851 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-20 07:22 UTC
rendered paste body
Index: Unit.cpp
===================================================================
--- Unit.cpp	(revision 5257)
+++ Unit.cpp	(working copy)
@@ -7490,10 +7490,18 @@
         ((Creature*)this)->AI()->AttackStart(target);
         return true;
     }
-
-    // no target but something prevent go to evade mode
+	// no target but something prevent go to evade mode
+	// Check for hunters ice traps 
+	// Freezing Trap Effect 1,2 & 3
+	if( ((Creature*)this)->HasAura(3355, 0 ) || ((Creature*)this)->HasAura(14308, 0 ) || ((Creature*)this)->HasAura(14309, 0 ) )
+	{
+		((Creature*)this)->Say("NO CHEATING HUNTERS!", LANG_UNIVERSAL, NULL);
+		((Creature*)this)->RemoveAllAuras();
+	}
+    
     if( !isInCombat() || HasAuraType(SPELL_AURA_MOD_TAUNT) || !CanFreeMove() )
         return false;
+	
 
     // last case when creature don't must go to evade mode:
     // it in combat but attacker not make any damage and not enter to aggro radius to have record in threat list