From 8b0cb21c499bd9a8d82d979921dabd4f9478880a Mon Sep 17 00:00:00 2001 From: Jozef DĂșc Date: Sat, 4 Apr 2020 15:30:55 +0200 Subject: Scripts/Pet: Baby Blizzard Bear & Egbert (#24349) * Baby Blizzard Bear & Egbert * SQL * Update 9999_99_99_99_world.sql SQL fix * Rename 9999_99_99_99_world.sql to 2020_04_04_00_world.sql Co-authored-by: Eridium <6587064+Killyana@users.noreply.github.com> Co-authored-by: Giacomo Pozzoni (cherry picked from commit 264a5839032257f9d65bfad3dd0075d263799d5c) --- .../scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src') diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp index e75e083d4b1..43255d4f35c 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp @@ -2185,17 +2185,10 @@ class spell_the_lich_king_necrotic_plague_jump : public SpellScriptLoader _hadAura = true; } - void AddMissingStack() - { - if (GetHitAura() && !_hadAura && GetSpellValue()->EffectBasePoints[EFFECT_1] != AURA_REMOVE_BY_ENEMY_SPELL) - GetHitAura()->ModStackAmount(1); - } - void Register() override { OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_the_lich_king_necrotic_plague_SpellScript::SelectTarget, EFFECT_0, TARGET_UNIT_SRC_AREA_ENTRY); BeforeHit += BeforeSpellHitFn(spell_the_lich_king_necrotic_plague_SpellScript::CheckAura); - OnHit += SpellHitFn(spell_the_lich_king_necrotic_plague_SpellScript::AddMissingStack); } bool _hadAura; @@ -2233,7 +2226,7 @@ class spell_the_lich_king_necrotic_plague_jump : public SpellScriptLoader CastSpellExtraArgs args(TRIGGERED_FULL_MASK); args.SetOriginalCaster(GetCasterGUID()); - args.AddSpellMod(SPELLVALUE_AURA_STACK, GetStackAmount()); + args.AddSpellMod(SPELLVALUE_AURA_STACK, GetStackAmount() + 1); GetTarget()->CastSpell(nullptr, SPELL_NECROTIC_PLAGUE_JUMP, args); if (Unit* caster = GetCaster()) caster->CastSpell(caster, SPELL_PLAGUE_SIPHON, true); -- cgit v1.2.3