diff options
author | Trazom62 <none@none> | 2010-04-09 20:10:55 +0200 |
---|---|---|
committer | Trazom62 <none@none> | 2010-04-09 20:10:55 +0200 |
commit | bca335f9bd4e11e42d13613d4e8a98695a990c8a (patch) | |
tree | 6041dbeeda0b147101f3d33326273a6c8e5fbfbd /src/game/Player.h | |
parent | 0c22e5ac994ae5b039a4d011493428e1e88c6404 (diff) |
Implement Global Cooldown (originaly written for TC2 v2.4.3).
Thanks eugen.rivniy for the port.
Fixes issue #67.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.h')
-rw-r--r-- | src/game/Player.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Player.h b/src/game/Player.h index 938df014dbf..7919b85a198 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -1629,6 +1629,11 @@ class Player : public Unit, public GridObject<Player> void SetLastPotionId(uint32 item_id) { m_lastPotionId = item_id; } void UpdatePotionCooldown(Spell* spell = NULL); + // global cooldown + void AddGlobalCooldown(SpellEntry const *spellInfo, Spell const *spell); + bool HasGlobalCooldown(SpellEntry const *spellInfo) const; + void RemoveGlobalCooldown(SpellEntry const *spellInfo); + void setResurrectRequestData(uint64 guid, uint32 mapId, float X, float Y, float Z, uint32 health, uint32 mana) { m_resurrectGUID = guid; @@ -2608,6 +2613,7 @@ class Player : public Unit, public GridObject<Player> ReputationMgr m_reputationMgr; SpellCooldowns m_spellCooldowns; + std::map<uint32, uint32> m_globalCooldowns; // whole start recovery category stored in one uint32 m_ChampioningFaction; |