Core/Spells: Fixed The Art of War procing only on melee attacks, by tassader1000

Core/Spells: Added missing change in previous revision

Closes issue #2386.

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-09-08 11:22:51 +02:00
parent e5d612d339
commit 5c13a08d87
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -5736,7 +5736,7 @@ SpellCastResult Spell::CheckCast(bool strict)
// check if caster has at least 1 combo point for spells that require combo points
if (m_needComboPoints)
if (Player* plrCaster = m_caster->ToPlayer())
if (!m_caster->ToPlayer()->GetComboPoints())
if (!plrCaster->GetComboPoints())
return SPELL_FAILED_NO_COMBO_POINTS;
// don't allow channeled spells / spells with cast time to be casted while moving