mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[11192] Make some more use of 'const' in SpellAuraHolder.
This commit is contained in:
parent
3b6b6078d1
commit
60b2e2c8ba
3 changed files with 7 additions and 7 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue