aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/CreatureAISelector.cpp12
-rw-r--r--src/game/SpellEffects.cpp8
2 files changed, 8 insertions, 12 deletions
diff --git a/src/game/CreatureAISelector.cpp b/src/game/CreatureAISelector.cpp
index 83975c0fc7d..4421eef7ee2 100644
--- a/src/game/CreatureAISelector.cpp
+++ b/src/game/CreatureAISelector.cpp
@@ -75,18 +75,6 @@ namespace FactorySelector
ai_factory = ai_registry.GetRegistryItem("CritterAI");
}
- if(!ai_factory)
- {
- for (uint32 i = 0; i < CREATURE_MAX_SPELLS; ++i)
- {
- if(creature->m_spells[i])
- {
- ai_factory = ai_registry.GetRegistryItem("CombatAI");
- break;
- }
- }
- }
-
// select by permit check
if(!ai_factory)
{
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index b579cb198af..fdfe43ecab6 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5686,6 +5686,14 @@ void Spell::EffectScriptEffect(uint32 effIndex)
unitTarget->CastSpell(unitTarget,67729,false); //Explode
break;
}
+ case 66545: //Summon Memory
+ {
+ uint8 uiRandom = urand(0,25);
+ uint32 uiSpells[26] = {66704,66705,66706,66707,66709,66710,66711,66712,66713,66714,66715,66708,66708,66691,66692,66694,66695,66696,66697,66698,66699,66700,66701,66702,66703,66543};
+
+ m_caster->CastSpell(m_caster,uiSpells[uiRandom],true);
+ break;
+ }
}
break;
}