fix(Core/Item): Complimentary Brewfest Sampler (#16992)

* Fix(DB/C++):Item - Complimentary Brewfest Sampler

* Delete PlayerStorage.cpp

* Update rev_1691843684176706600.sql

Correction

* Ripristino il file PlayerStorage.cpp

* New file: SpellInfoCorrections.cpp

* Update rev_1691843684176706600.sql
This commit is contained in:
The GhostRider
2023-08-25 12:45:06 +01:00
committed by GitHub
parent d63aba78bd
commit b1c8b0eaa2
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
-- Insertion Aura Has Brewfest Mug
DELETE FROM `spell_custom_attr` WHERE (`spell_id` = 42533);
INSERT INTO `spell_custom_attr` (`spell_id`, `attributes`) VALUES (42533, 16777216);

View File

@@ -57,6 +57,12 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->AttributesEx3 |= SPELL_ATTR3_ALWAYS_HIT;
});
// Has Brewfest Mug
ApplySpellFix({ 42533 }, [](SpellInfo* spellInfo)
{
spellInfo->DurationEntry = sSpellDurationStore.LookupEntry(347); // 15 min
});
// Elixir of Minor Fortitude
ApplySpellFix({ 2378 }, [](SpellInfo* spellInfo)
{