diff options
author | QAston <none@none> | 2009-06-23 14:05:37 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-06-23 14:05:37 +0200 |
commit | f2ec641e429470bd3adc01bbdf1d62e900b5fa2a (patch) | |
tree | 0165de38d0b67f0302fb494df07d02953a028d2b /src/game/PetHandler.cpp | |
parent | 64786941ddf531bcd3b4bea1738151bfc46a19a7 (diff) |
[8056] Move SMSG_CLEAR_COOLDOWN into function and use it. Other cleanups. Author:XTZGZoReX
[8060] Store spell_pet_auras for auraeffects instead of by whole aura Author:hunuza.
--HG--
branch : trunk
Diffstat (limited to 'src/game/PetHandler.cpp')
-rw-r--r-- | src/game/PetHandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/PetHandler.cpp b/src/game/PetHandler.cpp index 3960b59d6d4..3dc7c6d4ff1 100644 --- a/src/game/PetHandler.cpp +++ b/src/game/PetHandler.cpp @@ -291,7 +291,7 @@ void WorldSession::HandlePetActionHelper(Unit *pet, uint64 guid1, uint16 spellid pet->SendPetCastFail(spellid, result); if(!((Creature*)pet)->HasSpellCooldown(spellid)) - pet->SendPetClearCooldown(spellid); + GetPlayer()->SendClearCooldown(spellid, pet); spell->finish(false); delete spell; @@ -669,12 +669,12 @@ void WorldSession::HandlePetCastSpellOpcode( WorldPacket& recvPacket ) if(caster->GetTypeId() == TYPEID_PLAYER) { if(!((Player*)caster)->HasSpellCooldown(spellid)) - caster->SendPetClearCooldown(spellid); + GetPlayer()->SendClearCooldown(spellid, caster); } else { if(!((Creature*)caster)->HasSpellCooldown(spellid)) - caster->SendPetClearCooldown(spellid); + GetPlayer()->SendClearCooldown(spellid, caster); } spell->finish(false); |