diff options
author | Sarah Alexander <43092122+Nyeriah@users.noreply.github.com> | 2018-09-21 08:54:58 -0300 |
---|---|---|
committer | Keader <keader.android@gmail.com> | 2018-09-21 08:54:58 -0300 |
commit | 72f061f083f652da5ee2caf25cefcb577136dc32 (patch) | |
tree | 6274bb89640408d978ff3e3236e4398f2ae251a3 /src | |
parent | c8f830ff2b735fb45bf16f4421396709661939f6 (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)
Diffstat (limited to 'src')
-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 7abc8d35d7c..49216124cef 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp @@ -121,12 +121,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(); } @@ -179,7 +184,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); |