*Fix beacon of light.

*Fix a crash in Spell::CanAutoCast.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-04-11 18:58:34 +02:00
parent a5e7907ff5
commit 2e0ffba0bc
4 changed files with 35 additions and 6 deletions

View File

@@ -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] ))