*Fix a bug that combo points are never taken.
--HG-- branch : trunk
This commit is contained in:
1 parent
b5abc43ad5
commit
b5eed3626d
1 file changed
+2
-3
+2
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user