From 8448996639a8fe17704829486caf117835f3eba2 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sun, 1 Jan 2023 12:49:47 +0100 Subject: [PATCH] =?UTF-8?q?fix(Core/Spells):=20Fixed=20Hunter's=20Mark=20n?= =?UTF-8?q?ot=20being=20casted=20by=20Swamplord=20M=E2=80=A6=20(#14457)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(Core/Spells): Fixed Hunter's Mark not being casted by Swamplord Musel'ek. Fixes #13993 --- src/server/game/Spells/SpellInfoCorrections.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/server/game/Spells/SpellInfoCorrections.cpp b/src/server/game/Spells/SpellInfoCorrections.cpp index 18fdefb60..febeb19a9 100644 --- a/src/server/game/Spells/SpellInfoCorrections.cpp +++ b/src/server/game/Spells/SpellInfoCorrections.cpp @@ -4455,6 +4455,16 @@ void SpellMgr::LoadSpellInfoCorrections() spellInfo->Effects[EFFECT_0].TargetB = TARGET_DEST_CASTER; }); + // Hunter's Mark + ApplySpellFix({ 31615 }, [](SpellInfo* spellInfo) + { + for (uint8 index = EFFECT_0; index <= EFFECT_1; ++index) + { + spellInfo->Effects[index].TargetA = TARGET_UNIT_TARGET_ENEMY; + spellInfo->Effects[index].TargetB = 0; + } + }); + for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i) { SpellInfo* spellInfo = mSpellInfoMap[i];