mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-28 14:35:57 +00:00
fix(Core/Spells): MC should work on mounted targets (#23905)
This commit is contained in:
@@ -6609,8 +6609,13 @@ SpellCastResult Spell::CheckCast(bool strict)
|
||||
if (target->IsCreature() && target->ToCreature()->IsVehicle())
|
||||
return SPELL_FAILED_BAD_IMPLICIT_TARGETS;
|
||||
|
||||
// Allow SPELL_AURA_MOD_POSSESS to work on mounted players,
|
||||
// but keep the old restriction for everything else.
|
||||
if (target->IsMounted())
|
||||
return SPELL_FAILED_CANT_BE_CHARMED;
|
||||
{
|
||||
if (!(target->IsPlayer() && m_spellInfo->Effects[i].ApplyAuraName == SPELL_AURA_MOD_POSSESS))
|
||||
return SPELL_FAILED_CANT_BE_CHARMED;
|
||||
}
|
||||
|
||||
if (target->GetCharmerGUID())
|
||||
return SPELL_FAILED_CHARMED;
|
||||
@@ -7905,7 +7910,7 @@ bool Spell::CheckEffectTarget(Unit const* target, uint32 eff) const
|
||||
case SPELL_AURA_AOE_CHARM:
|
||||
if (target->IsCreature() && target->IsVehicle())
|
||||
return false;
|
||||
if (target->IsMounted())
|
||||
if (target->IsMounted() && m_spellInfo->Effects[eff].ApplyAuraName != SPELL_AURA_MOD_POSSESS)
|
||||
return false;
|
||||
if (target->GetCharmerGUID())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user