mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 13:46:24 +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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user