Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: AIInterface.cpp
- ===================================================================
- --- AIInterface.cpp (revision 3711)
- +++ AIInterface.cpp (working copy)
- @@ -241,8 +241,8 @@
- m_moveRun = true; //run to the target
- - // dismount if mounted
- - m_Unit->SetMount(0);
- + if( m_Unit->GetTypeId() == TYPEID_UNIT && !(static_cast< Creature* >( m_Unit )->GetCreatureInfo()->Flags1 & 2048))
- + m_Unit->SetMount(0);
- if(m_AIState != STATE_ATTACKING)
- StopMovement(0);
- @@ -573,6 +573,7 @@
- m_hasFleed = false;
- m_hasCalledForHelp = false;
- m_nextSpell = NULL;
- + m_Unit->SetMount(0);
- SetNextTarget( TO_UNIT(NULL) );
- //reset ProcCount
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement