mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16: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] ))
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8019"
|
||||
#define REVISION_NR "8020"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue