Implement Global Cooldown (originaly written for TC2 v2.4.3).
Thanks eugen.rivniy for the port. Fixes issue #67. --HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user