mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[9037] Cleanups in spellmode apply code.
* Add constructores for spellmode creating instead explcit fields init * Use uint32 for family mask 2 instead unneded uint64 Also drop one from manual applies for uno-existed now spell.
This commit is contained in:
parent
9d0e943488
commit
15de428242
10 changed files with 70 additions and 127 deletions
|
|
@ -5772,7 +5772,10 @@ void Spell::UpdatePointers()
|
|||
|
||||
bool Spell::IsAffectedByAura(Aura *aura) const
|
||||
{
|
||||
return sSpellMgr.IsAffectedByMod(m_spellInfo, aura->getAuraSpellMod());
|
||||
if(SpellModifier* mod = aura->getAuraSpellMod())
|
||||
return mod->isAffectedOnSpell(m_spellInfo);
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Spell::CheckTargetCreatureType(Unit* target) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue