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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user