*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() )

View File

@@ -4814,10 +4814,9 @@ void Spell::EffectScriptEffect(uint32 effIndex)
{
if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
unitTarget->HandleEmoteCommand(EMOTE_STATE_DANCE);
unitTarget->HandleEmoteCommand(EMOTE_STATE_DANCE);
break;
}
// Netherbloom
case 28702:
{

View File

@@ -507,6 +507,7 @@ bool IsPositiveEffect(uint32 spellId, uint32 effIndex)
case 37675: // Chaos Blast
case 41519: // Mark of Stormrage
case 34877: // Custodian of Time
case 34700:
return false;
}