diff options
author | click <none@none> | 2010-05-10 03:02:30 +0200 |
---|---|---|
committer | click <none@none> | 2010-05-10 03:02:30 +0200 |
commit | 5b20d478ffa556941735cfe7ef2d377600c75732 (patch) | |
tree | 9ded13897ce3c515c3b5d8dc6b0bee8cf851e11d /src | |
parent | c214b4afb0555b003216a707d29642d34a31f8fa (diff) |
Another little fix on hunter Disengage - stop it from being usable when rooted
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Spell.cpp | 6 |
1 files 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; |