aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/DragonIsles/AzureVault/boss_leymor.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/server/scripts/DragonIsles/AzureVault/boss_leymor.cpp b/src/server/scripts/DragonIsles/AzureVault/boss_leymor.cpp
index f8e6bd485db..886e9ecefb5 100644
--- a/src/server/scripts/DragonIsles/AzureVault/boss_leymor.cpp
+++ b/src/server/scripts/DragonIsles/AzureVault/boss_leymor.cpp
@@ -303,6 +303,18 @@ struct npc_ley_line_sprouts : public ScriptedAI
DoCastAOE(SPELL_ARCANE_POWER, true);
}
+ void JustSummoned(Creature* summon) override
+ {
+ Creature* leymor = me->GetInstanceScript()->GetCreature(DATA_LEYMOR);
+ if (!leymor)
+ return;
+
+ if (!leymor->IsAIEnabled())
+ return;
+
+ leymor->AI()->JustSummoned(summon);
+ }
+
void JustDied(Unit* /*killer*/) override
{
if (GetDifficulty() == DIFFICULTY_MYTHIC || GetDifficulty() == DIFFICULTY_MYTHIC_KEYSTONE)
@@ -347,6 +359,14 @@ struct npc_volatile_sapling : public ScriptedAI
}
}
+ void OnSpellFailed(SpellInfo const* spell) override
+ {
+ if (spell->Id != SPELL_SAPPY_BURST)
+ return;
+
+ me->KillSelf();
+ }
+
private:
bool _isSappyBurstCast;
};