Skip to content

Commit

Permalink
fix(Core/Spells): Master's Call used on rooted pet (#7294)
Browse files Browse the repository at this point in the history
- Closes #7239
  • Loading branch information
UltraNix authored Aug 14, 2021
1 parent 004af40 commit faef417
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/server/game/Spells/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit faef417

Please sign in to comment.