Skip to content

Commit

Permalink
[10638] More appropriate for warrior spell fail result for combo poin…
Browse files Browse the repository at this point in the history
…t check fail.
  • Loading branch information
VladimirMangos committed Oct 24, 2010
1 parent 9008c04 commit 342fd1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/game/Spell.cpp
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10637"
#define REVISION_NR "10638"
#endif // __REVISION_NR_H__

0 comments on commit 342fd1b

Please sign in to comment.