mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
*Fix beacon of light.
*Fix a crash in Spell::CanAutoCast. --HG-- branch : trunk
This commit is contained in:
@@ -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