fix(Scripts/Hunter): Bestial Wrath shoul not be castable on dead pets. (#9896)

Bestial Wrath should expire while pet is offline.
This commit is contained in:
UltraNix
2022-01-24 03:45:24 +01:00
committed by GitHub
parent 58507e2fe8
commit 2f8318fd58
4 changed files with 49 additions and 1 deletions

View File

@@ -7552,6 +7552,12 @@ void SpellMgr::LoadDbcDataCorrections()
spellInfo->EffectSpellClassMask[EFFECT_1][1] = 0x00020000;
});
// Bestial Wrath
ApplySpellFix({ 19574 }, [](SpellEntry* spellInfo)
{
spellInfo->AttributesEx4 |= SPELL_ATTR4_AURA_EXPIRES_OFFLINE;
});
for (uint32 i = 0; i < sSpellStore.GetNumRows(); ++i)
{
SpellEntry* spellInfo = (SpellEntry*)sSpellStore.LookupEntry(i);