From 578e1bb0e5cb369383ce21a7044455253fbd7da9 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 22 Sep 2020 16:22:14 -0400 Subject: [PATCH] Core/Spells: EffectSanctuary should stop attack Port From (https://github.com/TrinityCore/TrinityCore/commit/6c0af8743f48badbae43362ee61a61a22fde3fda) --- Source/Game/Spells/SpellEffects.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index 9819f7e3f..95eff8e66 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -3265,6 +3265,9 @@ namespace Game.Spells if (unitTarget == null) return; + if (unitTarget.IsTypeId(TypeId.Player)) + unitTarget.ToPlayer().SendAttackSwingCancelAttack(); // melee and ranged forced attack cancel + unitTarget.GetHostileRefManager().UpdateVisibility(); var attackers = unitTarget.GetAttackers();