Core/Spell: do not fail triggered Charge effects in case a root is present.

Fixes Master's call when pet is rooted
This commit is contained in:
ariel-
2016-11-13 23:20:45 -03:00
parent 5aa0228df9
commit 5daabe303e

View File

@@ -5273,7 +5273,7 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint
m_caster->RemoveMovementImpairingAuras();
}
if (m_caster->HasUnitState(UNIT_STATE_ROOT))
if (!(_triggeredCastFlags & TRIGGERED_IGNORE_CASTER_AURAS) && m_caster->HasUnitState(UNIT_STATE_ROOT))
return SPELL_FAILED_ROOTED;
if (GetSpellInfo()->NeedsExplicitUnitTarget())