[8020] Use proper aura stack size check for post-0.12 code

This commit is contained in:
VladimirMangos 2009-06-15 12:15:22 +04:00
parent 2061939428
commit 06c4ef3931
2 changed files with 4 additions and 3 deletions

View file

@ -4709,8 +4709,9 @@ bool Spell::CanAutoCast(Unit* target)
}
else
{
if( target->GetAuras().count(Unit::spellEffectPair(m_spellInfo->Id, j)) >= m_spellInfo->StackAmount)
return false;
if(Aura* aura = target->GetAura(m_spellInfo->Id, j))
if(aura->GetStackAmount() >= m_spellInfo->StackAmount)
return false;
}
}
else if ( IsAreaAuraEffect( m_spellInfo->Effect[j] ))