Advertisement
Guest User

stoneharry

a guest
Oct 16th, 2010
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.68 KB | None | 0 0
  1. Index: AIInterface.cpp
  2. ===================================================================
  3. --- AIInterface.cpp (revision 3711)
  4. +++ AIInterface.cpp (working copy)
  5. @@ -241,8 +241,8 @@
  6.  
  7.                 m_moveRun = true; //run to the target
  8.  
  9. -               // dismount if mounted
  10. -               m_Unit->SetMount(0);
  11. +               if( m_Unit->GetTypeId() == TYPEID_UNIT && !(static_cast< Creature* >( m_Unit )->GetCreatureInfo()->Flags1 & 2048))
  12. +                   m_Unit->SetMount(0);
  13.  
  14.                 if(m_AIState != STATE_ATTACKING)
  15.                     StopMovement(0);
  16. @@ -573,6 +573,7 @@
  17.             m_hasFleed = false;
  18.             m_hasCalledForHelp = false;
  19.             m_nextSpell = NULL;
  20. +           m_Unit->SetMount(0);
  21.  
  22.             SetNextTarget( TO_UNIT(NULL) );
  23.             //reset ProcCount
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement