mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +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) &&
|
||||
(!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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue