aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnubisss <none@none>2009-05-15 17:54:10 +0200
committerAnubisss <none@none>2009-05-15 17:54:10 +0200
commite6cd40a6191ba42bee1941359db48188809a0325 (patch)
tree86890b8e76e0dc2ef3f86cb43527dc6293d0eb0f /src
parent7549076a38cc720acf2605422e78cc6ef8bda868 (diff)
*Implement GetSpellCooldowns() for get m_spellCooldowns(Player's map of spell CDs).
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Player.h b/src/game/Player.h
index e9400c04430..0223364cce0 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);