Core/Spells: EffectSanctuary should stop attack

Port From (https://github.com/TrinityCore/TrinityCore/commit/6c0af8743f48badbae43362ee61a61a22fde3fda)
This commit is contained in:
hondacrx
2020-09-22 16:22:14 -04:00
parent 5f8333188a
commit 578e1bb0e5
+3
View File
@@ -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();