All pastes #912382 Raw Edit

Something

public text v1 · immutable
·published 2008-02-21 10:30 UTC
rendered paste body
// no target but something prevent go to evade mode
	// Check for Hunter Freezing Traps & Rouge Blind Spell
	// These auras need removing if creature has no valid target.
	if( ((Creature*)this)->hasUnitState(UNIT_STAT_STUNDED) || ((Creature*)this)->hasUnitState(UNIT_STAT_CONFUSED))
	{
	 if( ((Creature*)this)->HasAura(3355, 0 ) || ((Creature*)this)->HasAura(14308, 0 ) || ((Creature*)this)->HasAura(14309, 0 ) || ((Creature*)this)->HasAura(2094, 0 ) )
		{
		((Creature*)this)->RemoveAurasDueToSpell(2094);// Blind
		((Creature*)this)->RemoveAurasDueToSpell(3355);// Freezing Trap Effect 1
		((Creature*)this)->RemoveAurasDueToSpell(14308);// Freezing Trap Effect 2
		((Creature*)this)->RemoveAurasDueToSpell(14309);// Freezing Trap Effect 3
		}
	}