fix(Core/Spell): Refreshment Table position (#19704)

Refreshment Table game object should be created at the same position its
Refreshment Portal was created.
This commit is contained in:
Saqra1 2024-09-11 09:53:07 -05:00 committed by GitHub
parent edd7e10dfc
commit 4734582e58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4822,6 +4822,13 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->AttributesEx3 |= SPELL_ATTR3_SUPRESS_CASTER_PROCS;
});
// Conjure Refreshment Table (Rank 1, Rank 2)
ApplySpellFix({ 43985, 58661 }, [](SpellInfo* spellInfo)
{
spellInfo->Effects[EFFECT_0].TargetA = SpellImplicitTargetInfo(TARGET_DEST_CASTER_FRONT);
spellInfo->Effects[EFFECT_0].RadiusEntry = sSpellRadiusStore.LookupEntry(EFFECT_RADIUS_5_YARDS);
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];