From 5b20d478ffa556941735cfe7ef2d377600c75732 Mon Sep 17 00:00:00 2001 From: click Date: Mon, 10 May 2010 03:02:30 +0200 Subject: [PATCH] Another little fix on hunter Disengage - stop it from being usable when rooted --HG-- branch : trunk --- src/game/Spell.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index f3dc1320a58..8fb32339522 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -5196,9 +5196,11 @@ SpellCastResult Spell::CheckCast(bool strict) } case SPELL_EFFECT_LEAP_BACK: { - if(m_spellInfo->Id == 781) - if(!m_caster->isInCombat()) + if (m_spellInfo->Id == 781) + if (!m_caster->isInCombat()) return SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW; + if (m_caster->hasUnitState(UNIT_STAT_ROOT)) + return SPELL_FAILED_ROOTED; break; } default:break;