From b5eed3626ddc9dbc14dece208782c9a698bab7ae Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 22 Mar 2009 18:45:44 -0600 Subject: [PATCH] *Fix a bug that combo points are never taken. --HG-- branch : trunk --- src/game/Spell.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 2808b6fdba..0e0f127a12 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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)