From 91e4d7324a424512c56c1c165fa9795ada0a8dd8 Mon Sep 17 00:00:00 2001 From: ApoC Date: Sun, 5 Jul 2009 13:35:54 +0200 Subject: [PATCH] [8122] Permit read-only acces to player's cooldowns via GetSpellCooldownMap() Signed-off-by: ApoC --- src/game/Player.h | 2 ++ src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/Player.h b/src/game/Player.h index 05b662ea3..44d93408f 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -1492,6 +1492,8 @@ class MANGOS_DLL_SPEC Player : public Unit PlayerSpellMap const& GetSpellMap() const { return m_spells; } PlayerSpellMap & GetSpellMap() { return m_spells; } + SpellCooldowns const& GetSpellCooldownMap() const { return m_spellCooldowns; } + void AddSpellMod(SpellModifier* mod, bool apply); bool IsAffectedBySpellmod(SpellEntry const *spellInfo, SpellModifier *mod, Spell const* spell = NULL); template T ApplySpellMod(uint32 spellId, SpellModOp op, T &basevalue, Spell const* spell = NULL); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index e9069b9a8..c904f3ac4 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8121" + #define REVISION_NR "8122" #endif // __REVISION_NR_H__