Core/Spell: SpellAura Redux
Port From (https://github.com/TrinityCore/TrinityCore/commit/f7299dce9770a5b4a3a5ab289e930a390aa0407a)
This commit is contained in:
@@ -3822,14 +3822,14 @@ namespace Game.Entities
|
||||
if (aura.IsRemoved())
|
||||
return;
|
||||
|
||||
aura.SetIsSingleTarget(caster != null && aura.GetSpellInfo().IsSingleTarget() || aura.HasEffectType(AuraType.ControlVehicle));
|
||||
aura.SetIsSingleTarget(caster != null && aura.GetSpellInfo().IsSingleTarget());
|
||||
if (aura.IsSingleTarget())
|
||||
{
|
||||
|
||||
// @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)
|
||||
Cypher.Assert((IsInWorld && !IsDuringRemoveFromWorld()) || (aura.GetCasterGUID() == GetGUID()) || (IsLoading() && aura.HasEffectType(AuraType.ControlVehicle)));
|
||||
Cypher.Assert((IsInWorld && !IsDuringRemoveFromWorld()) || aura.GetCasterGUID() == GetGUID());
|
||||
|
||||
// register single target aura
|
||||
caster.m_scAuras.Add(aura);
|
||||
|
||||
Reference in New Issue
Block a user