diff options
| author | megamage <none@none> | 2009-05-10 14:51:51 -0500 | 
|---|---|---|
| committer | megamage <none@none> | 2009-05-10 14:51:51 -0500 | 
| commit | ff3332f0661e0f19a2afa34a96997066bf99cc8a (patch) | |
| tree | e5c66472dab00375935255adda802d2250606150 /src/game/Spell.cpp | |
| parent | b8e82a23a6ddfd5ee506745bb04dbfd654112cdc (diff) | |
[7809] Replace repeating "remove cooldown and send update to client" code by function call. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
| -rw-r--r-- | src/game/Spell.cpp | 10 | 
1 files changed, 1 insertions, 9 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 0835273a36c..b8b92cbbadf 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -585,15 +585,7 @@ void Spell::FillTargetMap()                              {                                  // clear cooldown at fail                                  if(m_caster->GetTypeId()==TYPEID_PLAYER) -                                { -                                    ((Player*)m_caster)->RemoveSpellCooldown(m_spellInfo->Id); - -                                    WorldPacket data(SMSG_CLEAR_COOLDOWN, (4+8)); -                                    data << uint32(m_spellInfo->Id); -                                    data << uint64(m_caster->GetGUID()); -                                    ((Player*)m_caster)->GetSession()->SendPacket(&data); -                                } - +                                    ((Player*)m_caster)->RemoveSpellCooldown(m_spellInfo->Id,true);                                  SendCastResult(SPELL_FAILED_NO_EDIBLE_CORPSES);                                  finish(false);                              }  | 
