diff options
author | Vincent-Michael <Vincent_Michael@gmx.de> | 2012-04-28 02:56:29 +0200 |
---|---|---|
committer | Vincent-Michael <Vincent_Michael@gmx.de> | 2012-04-28 02:56:29 +0200 |
commit | e8bfcb686f2400b80659d4f65ec523cb07e17c06 (patch) | |
tree | f6b68011e5a2080ea37a83c708a23103e80c5951 | |
parent | 272351594642eb239ff4d0342cc1e0cdc9815015 (diff) |
Core/Spell: Fix not using Disengage while rooted
-rwxr-xr-x | src/server/game/Spells/Spell.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index f055d669925..28b089f91cd 100755 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -5333,8 +5333,7 @@ SpellCastResult Spell::CheckCast(bool strict) if (m_caster->GetTypeId() == TYPEID_PLAYER && m_spellInfo->Id == 781 && !m_caster->isInCombat()) return SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW; - Unit* target = m_targets.GetUnitTarget(); - if (m_caster == target && m_caster->HasUnitState(UNIT_STATE_ROOT)) + if (m_caster->HasUnitState(UNIT_STATE_ROOT)) { if (m_caster->GetTypeId() == TYPEID_PLAYER) return SPELL_FAILED_ROOTED; |