From 47eba9ce1de8a7ef396b1f1718b3749c7c7d879d Mon Sep 17 00:00:00 2001 From: ariel- Date: Wed, 20 Jan 2016 01:35:02 -0300 Subject: [PATCH] Core/Scripts: Fixed Death and Decay Closes #46 --- src/server/game/Spells/SpellMgr.cpp | 8 ++++++++ src/server/scripts/Spells/spell_dk.cpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index dc55b620b68..32847f87e49 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -3092,6 +3092,14 @@ void SpellMgr::LoadSpellInfoCorrections() spellInfo->Effects[EFFECT_0].TargetA = SpellImplicitTargetInfo(TARGET_UNIT_CASTER_AREA_PARTY); spellInfo->Effects[EFFECT_0].RadiusEntry = sSpellRadiusStore.LookupEntry(EFFECT_RADIUS_10_YARDS_2); break; + case 43265: // Death and Decay + // We need access to the targets of the dynaura to correctly apply the damage spell + // Currently EFFECT_1 has PERIODIC_DUMMY aura but TARGET_UNIT_CASTER set + // This will leave the spell in the same state as it was in 335 DBC + spellInfo->Effects[EFFECT_0].ApplyAuraName = SPELL_AURA_PERIODIC_DUMMY; + spellInfo->Effects[EFFECT_0].Amplitude = spellInfo->Effects[EFFECT_1].Amplitude; + spellInfo->Effects[EFFECT_1].Effect = 0; // might as well save a few cpu cycles + break; case 31347: // Doom case 36327: // Shoot Arcane Explosion Arrow case 39365: // Thundering Storm diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index 4886790d27e..69e81e22259 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -405,7 +405,7 @@ class spell_dk_death_and_decay : public SpellScriptLoader void Register() override { - OnEffectPeriodic += AuraEffectPeriodicFn(spell_dk_death_and_decay_AuraScript::HandleDummyTick, EFFECT_1, SPELL_AURA_PERIODIC_DUMMY); + OnEffectPeriodic += AuraEffectPeriodicFn(spell_dk_death_and_decay_AuraScript::HandleDummyTick, EFFECT_0, SPELL_AURA_PERIODIC_DUMMY); } };