*Update creature AI functions

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-06 00:05:54 -05:00
parent e69d2cbed9
commit f4e8654337
3 changed files with 55 additions and 14 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ void CreatureAI::DoZoneInCombat(Creature* creature)
}
}
if (!creature->CanHaveThreatList() || creature->getThreatManager().isThreatListEmpty())
if (!creature->CanHaveThreatList() || !creature->getVictim())
{
sLog.outError("DoZoneInCombat called for creature that either cannot have threat list or has empty threat list (creature entry = %d)", creature->GetTypeId() == TYPEID_UNIT ? ((Creature*)creature)->GetEntry() : 0);
return;