mirror of
https://github.com/mangosfour/server.git
synced 2025-12-31 13:37:07 +00:00
[12065] Fix various warnings
This commit is contained in:
parent
5f4d61928f
commit
84080ee5d3
27 changed files with 91 additions and 89 deletions
|
|
@ -858,7 +858,7 @@ bool Aura::isAffectedOnSpell(SpellEntry const* spell) const
|
|||
return spell->IsFitToFamily(SpellFamily(GetSpellProto()->SpellFamilyName), GetAuraSpellClassMask());
|
||||
}
|
||||
|
||||
bool Aura::CanProcFrom(SpellEntry const* spell, uint32 procFlag, uint32 EventProcEx, uint32 procEx, bool active, bool useClassMask) const
|
||||
bool Aura::CanProcFrom(SpellEntry const* spell, uint32 /*procFlag*/, uint32 EventProcEx, uint32 procEx, bool active, bool useClassMask) const
|
||||
{
|
||||
// Check EffectClassMask
|
||||
ClassFamilyMask const& mask = GetAuraSpellClassMask();
|
||||
|
|
@ -918,7 +918,7 @@ void Aura::ReapplyAffectedPassiveAuras(Unit* target, bool owner_mode)
|
|||
{
|
||||
// permanent passive or permanent area aura
|
||||
// passive spells can be affected only by own or owner spell mods)
|
||||
if ((itr->second->IsPermanent() && (owner_mode && itr->second->IsPassive() || itr->second->IsAreaAura())) &&
|
||||
if ((itr->second->IsPermanent() && ((owner_mode && itr->second->IsPassive()) || itr->second->IsAreaAura())) &&
|
||||
// non deleted and not same aura (any with same spell id)
|
||||
!itr->second->IsDeleted() && itr->second->GetId() != GetId() &&
|
||||
// and affected by aura
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue