From e6cd40a6191ba42bee1941359db48188809a0325 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Fri, 15 May 2009 17:54:10 +0200 Subject: [PATCH] *Implement GetSpellCooldowns() for get m_spellCooldowns(Player's map of spell CDs). --HG-- branch : trunk --- src/game/Player.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/Player.h b/src/game/Player.h index e9400c0443..0223364cce 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -1669,6 +1669,8 @@ class TRINITY_DLL_SPEC Player : public Unit //End of PvP System + inline SpellCooldowns GetSpellCooldowns() const { return m_spellCooldowns; } + void SetDrunkValue(uint16 newDrunkValue, uint32 itemid=0); uint16 GetDrunkValue() const { return m_drunk; } static DrunkenState GetDrunkenstateByValue(uint16 value); @@ -2152,7 +2154,6 @@ class TRINITY_DLL_SPEC Player : public Unit PlayerMails m_mail; PlayerSpellMap m_spells; - SpellCooldowns m_spellCooldowns; uint32 m_lastPotionId; // last used health/mana potion in combat, that block next potion use ActionButtonList m_actionButtons; @@ -2285,6 +2286,8 @@ class TRINITY_DLL_SPEC Player : public Unit AchievementMgr m_achievementMgr; ReputationMgr m_reputationMgr; + + SpellCooldowns m_spellCooldowns; }; void AddItemsSetItem(Player*player,Item *item);