[10638] More appropriate for warrior spell fail result for combo point check fail.

This commit is contained in:
VladimirMangos 2010-10-24 09:27:34 +04:00
parent 666ecfee99
commit a79f9b1fe4
2 changed files with 3 additions and 2 deletions

View file

@ -4311,7 +4311,8 @@ SpellCastResult Spell::CheckCast(bool strict)
if (!m_IsTriggeredSpell && NeedsComboPoints(m_spellInfo) &&
(!m_targets.getUnitTarget() || m_targets.getUnitTarget()->GetObjectGuid() != ((Player*)m_caster)->GetComboTargetGuid()))
return SPELL_FAILED_NO_COMBO_POINTS;
// warrior not have real combo-points at client side but use this way for mark allow Overpower use
return m_caster->getClass() == CLASS_WARRIOR ? SPELL_FAILED_CASTER_AURASTATE : SPELL_FAILED_NO_COMBO_POINTS;
}
if(Unit *target = m_targets.getUnitTarget())

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10637"
#define REVISION_NR "10638"
#endif // __REVISION_NR_H__