mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 05:55:07 +00:00
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:
@@ -1601,10 +1601,12 @@ void Pet::_LoadAuras(PreparedQueryResult result, uint32 timediff)
|
||||
continue;
|
||||
|
||||
// negative effects should continue counting down after logout
|
||||
if (remaintime != -1 && !spellInfo->IsPositive())
|
||||
if (remaintime != -1 && (!spellInfo->IsPositive() || spellInfo->HasAttribute(SPELL_ATTR4_AURA_EXPIRES_OFFLINE)))
|
||||
{
|
||||
if (remaintime / IN_MILLISECONDS <= int32(timediff))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
remaintime -= timediff * IN_MILLISECONDS;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user