[10010] Use schoolmask enum in struct SpellNonMeleeDamage, some indents fix.

This commit is contained in:
VladimirMangos 2010-05-31 08:06:49 +04:00
parent b23fd66aa6
commit 59cf9c1dbd
5 changed files with 52 additions and 52 deletions

View file

@ -7562,7 +7562,7 @@ void Aura::PeriodicTick()
SpellEntry const* spellProto = GetSpellProto();
// maybe has to be sent different to client, but not by SMSG_PERIODICAURALOG
SpellNonMeleeDamage damageInfo(pCaster, m_target, spellProto->Id, spellProto->SchoolMask);
SpellNonMeleeDamage damageInfo(pCaster, m_target, spellProto->Id, SpellSchoolMask(spellProto->SchoolMask));
pCaster->CalculateSpellDamage(&damageInfo, gain, spellProto);
damageInfo.target->CalculateAbsorbResistBlock(pCaster, &damageInfo, spellProto);