*Fixed 34700

*Set random target select for summoned creatures in Laj - by Iskander

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-01-28 14:53:51 +01:00
parent 53e646d230
commit 6e6e64cf67
3 changed files with 8 additions and 2 deletions

View File

@@ -144,6 +144,12 @@ struct TRINITY_DLL_DECL boss_lajAI : public ScriptedAI
{
}
void JustSummoned(Creature *summon)
{
if(summon && m_creature->getVictim())
summon->AI()->AttackStart(SelectUnit(SELECT_TARGET_RANDOM, 0));
}
void UpdateAI(const uint32 diff)
{
if( !m_creature->SelectHostilTarget() || !m_creature->getVictim() )