*Fix beacon of light.

*Fix a crash in Spell::CanAutoCast.

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

No files matched your search

+3 -2
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] ))