mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
*Fix the bug that eventAI creatures change target every update.
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user