*Fix a bug that combo points are never taken.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-03-22 18:45:44 -06:00
1 parent b5abc43ad5
commit b5eed3626d
1 file changed
+2 -3
+2 -3
View File
@@ -1025,9 +1025,8 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target)
if(!m_IsTriggeredSpell && !m_CastItem
&& NeedsComboPoints(m_spellInfo)
&& m_caster->GetTypeId()==TYPEID_PLAYER
&& target->targetGUID==m_targets.getUnitTargetGUID()
&& missInfo!= SPELL_MISS_NONE
&& missInfo != SPELL_MISS_MISS)
&& target->targetGUID == m_targets.getUnitTargetGUID()
&& (missInfo == SPELL_MISS_NONE || missInfo == SPELL_MISS_MISS))
((Player*)m_caster)->ClearComboPoints();
// Call scripted function for AI if this spell is casted upon a creature (except pets)