aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJozef DĂșc <D0d0@users.noreply.github.com>2020-04-04 15:30:55 +0200
committerGitHub <noreply@github.com>2020-04-04 15:30:55 +0200
commit936ff574c5d57502c12244850ab7bb97cad11ccb (patch)
treed6a6b9be7cefcd9141a2f57aa946870ab2bd1814 /src
parent264a5839032257f9d65bfad3dd0075d263799d5c (diff)
Fixes #22884 (#24338)
Fix issue 22884 with non stacking necrotic plague debuff after dispell//death
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp9
1 files changed, 1 insertions, 8 deletions
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 2a245d08df3..808edce56d0 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp
@@ -2207,17 +2207,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;
@@ -2254,7 +2247,7 @@ class spell_the_lich_king_necrotic_plague_jump : public SpellScriptLoader
}
CastSpellExtraArgs args(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);