fix(Core/Spells): Fixed Hunter's Mark not being casted by Swamplord M… (#14457)

fix(Core/Spells): Fixed Hunter's Mark not being casted by Swamplord Musel'ek.

Fixes #13993
This commit is contained in:
UltraNix
2023-01-01 12:49:47 +01:00
committed by GitHub
parent 4870b14b1f
commit 8448996639

View File

@@ -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];