mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8020] Use proper aura stack size check for post-0.12 code
This commit is contained in:
parent
2061939428
commit
06c4ef3931
2 changed files with 4 additions and 3 deletions
|
|
@ -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] ))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue