[11192] Make some more use of 'const' in SpellAuraHolder.

This commit is contained in:
Lynx3d 2011-02-21 16:56:00 +01:00
parent 3b6b6078d1
commit 60b2e2c8ba
3 changed files with 7 additions and 7 deletions

View file

@ -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();