diff options
author | click <none@none> | 2010-05-09 08:39:25 +0200 |
---|---|---|
committer | click <none@none> | 2010-05-09 08:39:25 +0200 |
commit | 02dfc46849f468045dc4b68f900b29b63adc2dcd (patch) | |
tree | 62022c623617a53b6b39e651cf5476efb517eee9 /src/game | |
parent | 8154f98737fc10276bd88a6af036adf2b7c4ab35 (diff) |
Fix hunters Disengage - disallow use when not in combat + use correct text when attempting to use it out of combat
Patch by mrDiver - fixes issue #568.
--HG--
branch : trunk
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/Spell.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index f0947a66e5d..f3dc1320a58 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -5194,6 +5194,13 @@ SpellCastResult Spell::CheckCast(bool strict) return SPELL_FAILED_BAD_TARGETS; break; } + case SPELL_EFFECT_LEAP_BACK: + { + if(m_spellInfo->Id == 781) + if(!m_caster->isInCombat()) + return SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW; + break; + } default:break; } } |