diff options
| author | ModoX <moardox@gmail.com> | 2023-03-31 13:44:29 +0200 |
|---|---|---|
| committer | ModoX <moardox@gmail.com> | 2023-03-31 13:44:29 +0200 |
| commit | f5017f73482eab212df6a59c1bf4d02f0f528266 (patch) | |
| tree | 71563c87a73612f39d65b07d91cfb04f3ed4ef99 /src | |
| parent | f1e95daf906678590c68425a775fd685ec748bb1 (diff) | |
Scripts/AzureVault: Fix despawning of Volatile Saplings
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/DragonIsles/AzureVault/boss_leymor.cpp | 20 |
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; }; |
