aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-02 16:55:41 -0600
committermegamage <none@none>2009-03-02 16:55:41 -0600
commitc6fc7f7bca19eb9acf52a6abac55df84e66ade08 (patch)
treeb5457ff7776c5933130944b50e319441ed3462a9 /src/game/Player.h
parentb1677c901d8d45e60947e30ff98d7ac5d01bd685 (diff)
[7363] Propertly set cooldown at server side for category spells at cooldown event send to client. Author: VladimirMangos
Also support item dependent cooldown set propetly at cooldown event send to client. Last will used in follow potion cooldown delay in combat patch. --HG-- branch : trunk
Diffstat (limited to 'src/game/Player.h')
-rw-r--r--src/game/Player.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Player.h b/src/game/Player.h
index 952eaf19c02..55f789848da 100644
--- a/src/game/Player.h
+++ b/src/game/Player.h
@@ -1491,8 +1491,9 @@ class TRINITY_DLL_SPEC Player : public Unit
time_t t = time(NULL);
return itr != m_spellCooldowns.end() && itr->second.end > t ? itr->second.end - t : 0;
}
+ void AddSpellAndCategoryCooldowns(SpellEntry const* spellInfo, uint32 itemId, Spell* spell = NULL);
void AddSpellCooldown(uint32 spell_id, uint32 itemid, time_t end_time);
- void SendCooldownEvent(SpellEntry const *spellInfo);
+ 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 RemoveArenaSpellCooldowns();