diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index a04fa356a..9320ab285 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -8616,7 +8616,7 @@ Unit* SpellAuraHolder::GetCaster() const return ObjectAccessor::GetUnit(*m_target, m_casterGuid);// player will search at any maps } -bool SpellAuraHolder::IsWeaponBuffCoexistableWith(SpellAuraHolder* ref) +bool SpellAuraHolder::IsWeaponBuffCoexistableWith(SpellAuraHolder const* ref) const { // only item casted spells if (GetCastItemGuid().IsEmpty()) @@ -8668,7 +8668,7 @@ bool SpellAuraHolder::IsNeedVisibleSlot(Unit const* caster) const return !m_isPassive || totemAura || HasAreaAuraEffect(m_spellProto); } -void SpellAuraHolder::SendAuraUpdate(bool remove) +void SpellAuraHolder::SendAuraUpdate(bool remove) const { WorldPacket data(SMSG_AURA_UPDATE); data << m_target->GetPackGUID(); diff --git a/src/game/SpellAuras.h b/src/game/SpellAuras.h index 5147d1c89..446721216 100644 --- a/src/game/SpellAuras.h +++ b/src/game/SpellAuras.h @@ -52,14 +52,14 @@ class MANGOS_DLL_SPEC SpellAuraHolder void ApplyAuraModifiers(bool apply, bool real = false); void _AddSpellAuraHolder(); void _RemoveSpellAuraHolder(); - void SendAuraUpdate(bool remove); + void SendAuraUpdate(bool remove) const; void HandleSpellSpecificBoosts(bool apply); void CleanupTriggeredSpells(); void setDiminishGroup(DiminishingGroup group) { m_AuraDRGroup = group; } DiminishingGroup getDiminishGroup() const { return m_AuraDRGroup; } - uint32 GetStackAmount() { return m_stackAmount; } + uint32 GetStackAmount() const { return m_stackAmount; } void SetStackAmount(uint32 stackAmount); bool ModStackAmount(int32 num); // return true if last charge dropped @@ -83,7 +83,7 @@ class MANGOS_DLL_SPEC SpellAuraHolder bool IsPersistent() const; bool IsPositive() const; bool IsAreaAura() const; // if one from auras of holder applied as area aura - bool IsWeaponBuffCoexistableWith(SpellAuraHolder* ref); + bool IsWeaponBuffCoexistableWith(SpellAuraHolder const* ref) const; bool IsNeedVisibleSlot(Unit const* caster) const; bool IsRemovedOnShapeLost() const { return m_isRemovedOnShapeLost; } bool IsInUse() const { return m_in_use;} @@ -107,7 +107,7 @@ class MANGOS_DLL_SPEC SpellAuraHolder void Update(uint32 diff); void RefreshHolder(); - bool IsSingleTarget() {return m_isSingleTarget; } + bool IsSingleTarget() const {return m_isSingleTarget; } void SetIsSingleTarget(bool val) { m_isSingleTarget = val; } void UnregisterSingleCastHolder(); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index f2ea1a53c..55c3ec769 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 "11191" + #define REVISION_NR "11192" #endif // __REVISION_NR_H__