diff options
author | Blaymoira <none@none> | 2009-01-28 14:53:51 +0100 |
---|---|---|
committer | Blaymoira <none@none> | 2009-01-28 14:53:51 +0100 |
commit | 6e6e64cf67477e14dfcb590704d00a08f15a4611 (patch) | |
tree | 9fc1727cfe04204506bb0f6231a1b77f9334161e | |
parent | 53e646d23056bac858a370fdf1949237b201ebea (diff) |
*Fixed 34700
*Set random target select for summoned creatures in Laj - by Iskander
--HG--
branch : trunk
-rw-r--r-- | src/bindings/scripts/scripts/zone/tempest_keep/botanica/boss_laj.cpp | 6 | ||||
-rw-r--r-- | src/game/SpellEffects.cpp | 3 | ||||
-rw-r--r-- | src/game/SpellMgr.cpp | 1 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/botanica/boss_laj.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/botanica/boss_laj.cpp index 87fe0f92641..c7e138e0918 100644 --- a/src/bindings/scripts/scripts/zone/tempest_keep/botanica/boss_laj.cpp +++ b/src/bindings/scripts/scripts/zone/tempest_keep/botanica/boss_laj.cpp @@ -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() ) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index fa1b957c243..2141c95a21b 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -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: { diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 0892ddabeab..7b33c94de07 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -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; } |