Core/Units: resolved more cherrypick mistakes which caused vehciles accessories to not enter their seats

This commit is contained in:
Ovahlord committed 2022-09-12 09:15:34 +02:00
1 parent b7f23d8e01
commit 18e6cd4565
1 file changed
+2 -2
+2 -2
View File
@@ -3085,7 +3085,7 @@ void Unit::_AddAura(UnitAura* aura, Unit* caster)
if (aura->IsRemoved())
return;
aura->SetIsLimitedTarget(caster && (aura->GetSpellInfo()->IsSingleTarget() || aura->GetSpellInfo()->GetAuraTargetLimit() || aura->HasEffectType(SPELL_AURA_CONTROL_VEHICLE)));
aura->SetIsLimitedTarget(caster && (aura->GetSpellInfo()->IsSingleTarget() || aura->GetSpellInfo()->GetAuraTargetLimit()));
if (aura->IsLimitedTarget())
{
@@ -3093,7 +3093,7 @@ void Unit::_AddAura(UnitAura* aura, Unit* caster)
(IsLoading() && aura->HasEffectType(SPELL_AURA_CONTROL_VEHICLE)));
/* @HACK: Player is not in world during loading auras.
* Single target auras are not saved or loaded from database
* but may be created as a result of aura links (player mounts with passengers)
* but may be created as a result of aura links
*/
// register limited target aura