All pastes #987562 Raw Edit

Mine

public text v1 · immutable
·published 2008-04-16 16:48 UTC
rendered paste body
Index: SpellAuras.cpp

===================================================================

--- SpellAuras.cpp	(revision 5528)

+++ SpellAuras.cpp	(working copy)

@@ -2257,6 +2257,7 @@

 
 void Aura::HandleModConfuse(bool apply, bool Real)
 {
+    if(m_target->isInFlight()) return;
     Unit* caster = GetCaster();
 
     if( apply )
@@ -2327,6 +2328,7 @@

 
 void Aura::HandleModFear(bool Apply, bool Real)
 {
+    if(m_target->isInFlight()) return;
     if( Apply )
     {
         m_target->addUnitState(UNIT_STAT_FLEEING);