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

Fixes Master's call when pet is rooted

(cherry picked from commit 5daabe303e9132c3b398eca44b9d0f4e9fb694ec)
This commit is contained in:
ariel-
2017-12-30 20:47:04 +01:00
committed by joschiwald
parent f00f3c414e
commit 6d7abb8181
+1 -1
View File
@@ -5363,7 +5363,7 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint
}
case SPELL_EFFECT_CHARGE:
{
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())