fix(Core/Spells): Properly handle pet spell auras with infinity cooldown. (#9576)
Fixes #9339
This commit is contained in:
parent
b1303e0e96
commit
4e70e60427
3 changed files with 34 additions and 13 deletions
|
|
@ -553,16 +553,6 @@ void WorldSession::HandlePetCancelAuraOpcode(WorldPacket& recvPacket)
|
|||
}
|
||||
|
||||
pet->RemoveOwnedAura(spellId, ObjectGuid::Empty, 0, AURA_REMOVE_BY_CANCEL);
|
||||
|
||||
if (spellInfo->IsCooldownStartedOnEvent())
|
||||
{
|
||||
pet->AddSpellCooldown(spellId, 0, 0);
|
||||
|
||||
WorldPacket data(SMSG_COOLDOWN_EVENT, 4 + 8);
|
||||
data << uint32(spellInfo->Id);
|
||||
data << pet->GetGUID();
|
||||
_player->SendDirectMessage(&data);
|
||||
}
|
||||
}
|
||||
|
||||
void WorldSession::HandleCancelGrowthAuraOpcode(WorldPacket& /*recvPacket*/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue