diff options
| author | Sarah Alexander <43092122+Nyeriah@users.noreply.github.com> | 2018-09-21 08:54:58 -0300 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-11-09 23:42:31 +0100 |
| commit | 938c7e518c7831637509c61764bfc50bae0a22dc (patch) | |
| tree | 4cb56745827f789ecf67bd5910655b5c674db740 | |
| parent | ed1bde7031799b81b7eab13a3376978e4356f335 (diff) | |
Scripts/TempleOfAhnQiraj: Despawn Skeram's images on death and fix an edge case where images would not spawn if he was casting during transition (#22474)
(cherry picked from commit 72f061f083f652da5ee2caf25cefcb577136dc32)
| -rw-r--r-- | src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp index 3d3a67ce60e..40cd1ab08aa 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp @@ -120,12 +120,17 @@ class boss_skeram : public CreatureScript creature->SetMaxHealth(me->GetMaxHealth() * ImageHealthPct); creature->SetHealth(creature->GetMaxHealth() * (me->GetHealthPct() / 100.0f)); + + summons.Summon(creature); } - void JustDied(Unit* /*killer*/) override + void JustDied(Unit* killer) override { if (!me->IsSummon()) + { Talk(SAY_DEATH); + BossAI::JustDied(killer); + } else me->DespawnOrUnsummon(); } @@ -178,7 +183,7 @@ class boss_skeram : public CreatureScript if (!me->IsSummon() && me->GetHealthPct() < _hpct) { - DoCast(me, SPELL_SUMMON_IMAGES); + DoCastAOE(SPELL_SUMMON_IMAGES, true); Talk(SAY_SPLIT); _hpct -= 25.0f; me->SetVisible(false); |
