From 037015e4e48aaa38287e2111776a071caa53e0f0 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 3 May 2009 16:58:44 -0500 Subject: *Fix the bug that eventAI creatures change target every update. --HG-- branch : trunk --- src/game/CreatureEventAI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp index 5ce6e4855a7..a1ee2a388b3 100644 --- a/src/game/CreatureEventAI.cpp +++ b/src/game/CreatureEventAI.cpp @@ -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::iterator itr = CreatureEventAIList.begin(); itr != CreatureEventAIList.end(); ++itr) { -- cgit v1.2.3