mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
fix(Scripts/AzjolNerub): Anub'Arak clear debuff spell (#19140)
* fix(CORE/Raid): Anub'Arak not using proper spell to clear his debuffs on submerge Anub'Arak (id: 34564) was using the RemoveAllAuras method instead of the ClearAllDebuffs spell to clear all his debuffs when submerging. Closes AzerothCore issue #19136 * fix(instace/Azjol'Nerub): Anub'Arak not removing debuffs on submerge anub'arak was not removing his debuffs on submerging with the right spell. closes issue #19113 * Update boss anub'arak of PR #19140 Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> * Update boss Anub'Arak code improvement * Update boss anub'arak * Update src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_anubarak_trial.cpp --------- Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -31,6 +31,7 @@ enum Spells
|
||||
SPELL_EMERGE = 53500,
|
||||
SPELL_SUBMERGE = 53421,
|
||||
SPELL_SELF_ROOT = 42716,
|
||||
SPELL_CLEAR_ALL_DEBUFFS = 34098,
|
||||
|
||||
SPELL_SUMMON_DARTER = 53599,
|
||||
SPELL_SUMMON_ASSASSIN = 53610,
|
||||
@@ -193,6 +194,7 @@ class boss_anub_arak : public CreatureScript
|
||||
if (me->HealthBelowPct(eventId*25))
|
||||
{
|
||||
Talk(SAY_SUBMERGE);
|
||||
DoCastSelf(SPELL_CLEAR_ALL_DEBUFFS, true);
|
||||
me->CastSpell(me, SPELL_IMPALE_PERIODIC, true);
|
||||
me->CastSpell(me, SPELL_SUBMERGE, false);
|
||||
me->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE|UNIT_FLAG_NOT_SELECTABLE);
|
||||
|
||||
@@ -88,6 +88,7 @@ enum AnubSpells
|
||||
SPELL_SUBMERGE = 65981,
|
||||
SPELL_EMERGE = 65982,
|
||||
SPELL_BERSERK = 26662,
|
||||
SPELL_CLEAR_ALL_DEBUFFS = 34098,
|
||||
|
||||
SPELL_FREEZING_SLASH = 66012,
|
||||
SPELL_PENETRATING_COLD = 66013,
|
||||
@@ -313,7 +314,7 @@ public:
|
||||
{
|
||||
me->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
|
||||
bool berserk = me->HasAura(SPELL_BERSERK);
|
||||
me->RemoveAllAuras();
|
||||
DoCastSelf(SPELL_CLEAR_ALL_DEBUFFS, true);
|
||||
if (berserk)
|
||||
me->CastSpell(me, SPELL_BERSERK, true);
|
||||
Talk(EMOTE_SUBMERGE);
|
||||
@@ -681,7 +682,7 @@ public:
|
||||
{
|
||||
me->GetMotionMaster()->MoveIdle();
|
||||
me->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->RemoveAllAuras();
|
||||
DoCastSelf(SPELL_CLEAR_ALL_DEBUFFS, true);
|
||||
me->CastSpell(me, SPELL_EXPOSE_WEAKNESS, true);
|
||||
me->CastSpell(me, SPELL_SPIDER_FRENZY, true);
|
||||
me->CastSpell(me, SPELL_SUBMERGE, false);
|
||||
|
||||
Reference in New Issue
Block a user