mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[10638] More appropriate for warrior spell fail result for combo point check fail.
This commit is contained in:
parent
666ecfee99
commit
a79f9b1fe4
2 changed files with 3 additions and 2 deletions
|
|
@ -4311,7 +4311,8 @@ SpellCastResult Spell::CheckCast(bool strict)
|
||||||
|
|
||||||
if (!m_IsTriggeredSpell && NeedsComboPoints(m_spellInfo) &&
|
if (!m_IsTriggeredSpell && NeedsComboPoints(m_spellInfo) &&
|
||||||
(!m_targets.getUnitTarget() || m_targets.getUnitTarget()->GetObjectGuid() != ((Player*)m_caster)->GetComboTargetGuid()))
|
(!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())
|
if(Unit *target = m_targets.getUnitTarget())
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10637"
|
#define REVISION_NR "10638"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue