diff options
| author | Aqua Deus <95978183+aquadeus@users.noreply.github.com> | 2025-05-18 11:44:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-18 11:44:04 +0200 |
| commit | 49dda145a67e4b99b2c6c501f9ac02967ab893e5 (patch) | |
| tree | f24d1363966b73dbcdfb87b9bd1fde176f5d9a45 /src | |
| parent | adc0be0c6691d22d272fb744636d57b8bf551ca8 (diff) | |
Scripts/Spells: Implement death knight talent Sanguine Ground (#30955)
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/Spells/spell_dk.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index 35904975f83..5ac5c91c318 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -89,6 +89,8 @@ enum DeathKnightSpells SPELL_DK_RUNIC_CORRUPTION = 51460, SPELL_DK_RUNIC_POWER_ENERGIZE = 49088, SPELL_DK_RUNIC_RETURN = 61258, + SPELL_DK_SANGUINE_GROUND_TALENT = 391458, + SPELL_DK_SANGUINE_GROUND = 391459, SPELL_DK_SLUDGE_BELCHER = 207313, SPELL_DK_SLUDGE_BELCHER_SUMMON = 212027, SPELL_DK_SMOTHERING_OFFENSE = 435005, @@ -1298,6 +1300,9 @@ struct at_dk_death_and_decay : AreaTriggerAI if (unit->HasAura(SPELL_DK_UNHOLY_GROUND_TALENT)) unit->CastSpell(unit, SPELL_DK_UNHOLY_GROUND_HASTE); + + if (unit->HasAura(SPELL_DK_SANGUINE_GROUND_TALENT)) + unit->CastSpell(unit, SPELL_DK_SANGUINE_GROUND); } void OnUnitExit(Unit* unit) override @@ -1313,6 +1318,8 @@ struct at_dk_death_and_decay : AreaTriggerAI if (AuraEffect* const cleavingStrikes = unit->GetAuraEffect(SPELL_DK_CLEAVING_STRIKES, EFFECT_3)) deathAndDecay->SetDuration(cleavingStrikes->GetAmount()); } + + unit->RemoveAurasDueToSpell(SPELL_DK_SANGUINE_GROUND); } }; |
