fix(Core/Spells): [TK] Wing Buffet should be a cone. (#19382)

* fix(Core/Spells): [TK] Wing Buffet should be a cone.

* radius to 20, from 15

* Update SpellInfoCorrections.cpp
This commit is contained in:
avarishd
2024-07-30 03:39:36 +03:00
committed by GitHub
parent 15849601e7
commit a567259770
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
-- Wing Buffet
DELETE FROM `spell_custom_attr` WHERE `spell_id`=37319;
INSERT INTO `spell_custom_attr` (`spell_id`, `attributes`) VALUES (37319, 4);

View File

@@ -4784,6 +4784,14 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->Effects[EFFECT_0].TargetB = SpellImplicitTargetInfo(TARGET_DEST_CASTER);
});
// Wing Buffet
ApplySpellFix({ 37319 }, [](SpellInfo* spellInfo)
{
spellInfo->Effects[EFFECT_0].TargetA = SpellImplicitTargetInfo(TARGET_UNIT_CONE_ENEMY_24);
spellInfo->Effects[EFFECT_0].TargetB = SpellImplicitTargetInfo(0);
spellInfo->Effects[EFFECT_0].RadiusEntry = sSpellRadiusStore.LookupEntry(EFFECT_RADIUS_20_YARDS);
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];