mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8122] Permit read-only acces to player's cooldowns via GetSpellCooldownMap()
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
b4302d61e5
commit
91e4d7324a
2 changed files with 3 additions and 1 deletions
|
|
@ -1492,6 +1492,8 @@ class MANGOS_DLL_SPEC Player : public Unit
|
||||||
PlayerSpellMap const& GetSpellMap() const { return m_spells; }
|
PlayerSpellMap const& GetSpellMap() const { return m_spells; }
|
||||||
PlayerSpellMap & GetSpellMap() { return m_spells; }
|
PlayerSpellMap & GetSpellMap() { return m_spells; }
|
||||||
|
|
||||||
|
SpellCooldowns const& GetSpellCooldownMap() const { return m_spellCooldowns; }
|
||||||
|
|
||||||
void AddSpellMod(SpellModifier* mod, bool apply);
|
void AddSpellMod(SpellModifier* mod, bool apply);
|
||||||
bool IsAffectedBySpellmod(SpellEntry const *spellInfo, SpellModifier *mod, Spell const* spell = NULL);
|
bool IsAffectedBySpellmod(SpellEntry const *spellInfo, SpellModifier *mod, Spell const* spell = NULL);
|
||||||
template <class T> T ApplySpellMod(uint32 spellId, SpellModOp op, T &basevalue, Spell const* spell = NULL);
|
template <class T> T ApplySpellMod(uint32 spellId, SpellModOp op, T &basevalue, Spell const* spell = NULL);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8121"
|
#define REVISION_NR "8122"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue