*Fix beacon of light.
*Fix a crash in Spell::CanAutoCast. --HG-- branch : trunk
This commit is contained in:
1 parent
a5e7907ff5
commit
2e0ffba0bc
4 files changed
+35
-6
No files matched your search
+3
-2
@@ -4641,8 +4641,9 @@ bool Spell::CanAutoCast(Unit* target)
|
||||
}
|
||||
else
|
||||
{
|
||||
if( (target->GetAuraEffect(m_spellInfo->Id, j))->GetParentAura()->GetStackAmount() >= m_spellInfo->StackAmount)
|
||||
return false;
|
||||
if( AuraEffect * aureff = target->GetAuraEffect(m_spellInfo->Id, j))
|
||||
if (aureff->GetParentAura()->GetStackAmount() >= m_spellInfo->StackAmount)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if ( IsAreaAuraEffect( m_spellInfo->Effect[j] ))
|
||||
|
||||
Reference in new issue
Block a user