fix(Core/Spells): Master's Call used on rooted pet (#7294)
- Closes #7239
This commit is contained in:
@@ -5662,7 +5662,13 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||||||
m_caster->RemoveMovementImpairingAuras(true);
|
m_caster->RemoveMovementImpairingAuras(true);
|
||||||
}
|
}
|
||||||
if (m_caster->HasUnitState(UNIT_STATE_ROOT))
|
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 (m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||||
if (Unit* target = m_targets.GetUnitTarget())
|
if (Unit* target = m_targets.GetUnitTarget())
|
||||||
if (!target->IsAlive())
|
if (!target->IsAlive())
|
||||||
|
|||||||
Reference in New Issue
Block a user