aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximius <none@none>2009-11-21 16:12:41 -0800
committermaximius <none@none>2009-11-21 16:12:41 -0800
commit409bad7d15ad5e9c738af07bd42af0c2570492e9 (patch)
tree1663e023806334baf223d0477cb8cc10aebe11f6 /src
parent79f8acbaf516dc7987ce3027a42d3b75f2ccfe41 (diff)
*You must be in combat to use Disengage.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index c3c6f0cbfd4..fb4c36ced1a 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -1719,7 +1719,7 @@ void Spell::EffectDummy(uint32 i)
{
case 781: // Disengage
{
- if (m_caster->GetTypeId() != TYPEID_PLAYER)
+ if (m_caster->GetTypeId() != TYPEID_PLAYER || !m_caster->isInCombat()) // Does not require a target, but m_caster must be in combat (3.0.3?)
return;
m_caster->JumpTo(15.0f, 7.0f, false);
@@ -1736,7 +1736,7 @@ void Spell::EffectDummy(uint32 i)
{
SpellEntry const *spellInfo = sSpellStore.LookupEntry(itr->first);
- if (spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER && spellInfo->Id != 23989 && GetSpellRecoveryTime(spellInfo) > 0 )
+ if (spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER && spellInfo->Id != 23989 && GetSpellRecoveryTime(spellInfo) > 0)
((Player*)m_caster)->RemoveSpellCooldown((itr++)->first,true);
else
++itr;