fix(Core/Spells): Fixed pet swoop ability not rooting target (#21559)

Co-authored-by: pavel_k <pavel_k@mail.com>
This commit is contained in:
Paul 2025-02-23 13:13:31 +03:00 committed by GitHub
parent e31674045b
commit 826b55dffb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4892,6 +4892,12 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->AttributesEx2 &= ~SPELL_ATTR2_IGNORE_LINE_OF_SIGHT;
});
// Swoop (Moth hunter pet) root effect fix
ApplySpellFix({ 52825 }, [](SpellInfo* spellInfo)
{
spellInfo->Effects[EFFECT_2].TargetA = SpellImplicitTargetInfo(TARGET_UNIT_TARGET_ENEMY);
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];