*Fix the bug that eventAI creatures change target every update.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-03 16:58:44 -05:00
parent 84fc76439c
commit 037015e4e4

View File

@@ -1175,11 +1175,11 @@ void CreatureEventAI::AttackStart(Unit *who)
void CreatureEventAI::MoveInLineOfSight(Unit *who)
{
if (!who)
if(me->getVictim())
return;
//Check for OOC LOS Event
if (!bEmptyList && !m_creature->getVictim())
if (!bEmptyList)
{
for (std::list<CreatureEventAIHolder>::iterator itr = CreatureEventAIList.begin(); itr != CreatureEventAIList.end(); ++itr)
{