[7809] Replace repeating "remove cooldown and send update to client" code by function call. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-10 14:51:51 -05:00
parent b8e82a23a6
commit ff3332f066
5 changed files with 21 additions and 47 deletions
+1 -1
View File
@@ -1384,7 +1384,7 @@ class TRINITY_DLL_SPEC Player : public Unit
void AddSpellCooldown(uint32 spell_id, uint32 itemid, time_t end_time);
void SendCooldownEvent(SpellEntry const *spellInfo, uint32 itemId = 0, Spell* spell = NULL);
void ProhibitSpellScholl(SpellSchoolMask idSchoolMask, uint32 unTimeMs );
void RemoveSpellCooldown(uint32 spell_id) { m_spellCooldowns.erase(spell_id); }
void RemoveSpellCooldown(uint32 spell_id, bool update = false);
void RemoveArenaSpellCooldowns();
void RemoveAllSpellCooldown();
void _LoadSpellCooldowns(QueryResult *result);