Core/Auras: Remove channeled auras when caster and target are not on the same map

Port From (https://github.com/TrinityCore/TrinityCore/commit/b842f2be5509d804363183e0445ed71cb5eb221b)
This commit is contained in:
hondacrx
2023-02-12 02:08:59 -05:00
parent 36a83fa307
commit fc2b562b9e
+2
View File
@@ -229,6 +229,8 @@ namespace Game.Entities
{
if (pair.Value != null && pair.Value.IsExpired())
RemoveOwnedAura(pair, AuraRemoveMode.Expire);
else if (pair.Value.GetSpellInfo().IsChanneled() && pair.Value.GetCasterGUID() != GetGUID() && !Global.ObjAccessor.GetWorldObject(this, pair.Value.GetCasterGUID()))
RemoveOwnedAura(pair, AuraRemoveMode.Cancel); // remove channeled auras when caster is not on the same map
}
foreach (var aura in m_visibleAurasToUpdate)