fix(Core/Spells): Master's Call used on rooted pet (#7294)

- Closes #7239
This commit is contained in:
UltraNix
2021-08-14 17:41:50 +02:00
committed by GitHub
parent 004af40cc0
commit faef417d92

View File

@@ -5662,7 +5662,13 @@ SpellCastResult Spell::CheckCast(bool strict)
m_caster->RemoveMovementImpairingAuras(true);
}
if (m_caster->HasUnitState(UNIT_STATE_ROOT))
return SPELL_FAILED_ROOTED;
{
// Exception for Master's Call
if (m_spellInfo->Id != 54216)
{
return SPELL_FAILED_ROOTED;
}
}
if (m_caster->GetTypeId() == TYPEID_PLAYER)
if (Unit* target = m_targets.GetUnitTarget())
if (!target->IsAlive())