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
This commit is contained in:
click
2010-05-09 08:39:25 +02:00
parent 8154f98737
commit 02dfc46849

View File

@@ -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;
}
}