# cat scriptDev-TARGETED_MOTION_TYPE.patch Index: src/bindings/universal/ScriptMgr.cpp =================================================================== --- src/bindings/universal/ScriptMgr.cpp (revision 127) +++ src/bindings/universal/ScriptMgr.cpp (working copy) @@ -417,7 +417,7 @@ { if( !m_creature->getVictim() && m_creature->isAlive() ) { - if( (*m_creature)->top()->GetMovementGeneratorType() == MovementGenerator::TARGETED_MOTION_TYPE ) + if( (*m_creature)->top()->GetMovementGeneratorType() == TARGETED_MOTION_TYPE ) (*m_creature)->Mutate(new TargetedMovementGenerator(*m_creature)); static_cast((*m_creature)->top())->TargetedHome(*m_creature); @@ -427,4 +427,5 @@ bool ScriptedAI::needToStop() const { return ( !m_creature->getVictim()->isTargetableForAttack() || !m_creature->isAlive() ); -} \ No newline at end of file +} +