diff --git a/OpenRA.Mods.Common/Traits/Attack/AttackBase.cs b/OpenRA.Mods.Common/Traits/Attack/AttackBase.cs index 985df88fdc..7ba7d5bc61 100644 --- a/OpenRA.Mods.Common/Traits/Attack/AttackBase.cs +++ b/OpenRA.Mods.Common/Traits/Attack/AttackBase.cs @@ -175,7 +175,8 @@ namespace OpenRA.Mods.Common.Traits OnStopOrder(self); } - protected virtual void OnStopOrder(Actor self) + // Some 3rd-party mods rely on this being public + public virtual void OnStopOrder(Actor self) { self.CancelActivity(); } diff --git a/OpenRA.Mods.Common/Traits/Attack/AttackFollow.cs b/OpenRA.Mods.Common/Traits/Attack/AttackFollow.cs index 057a1e7ae0..8db600eb3a 100644 --- a/OpenRA.Mods.Common/Traits/Attack/AttackFollow.cs +++ b/OpenRA.Mods.Common/Traits/Attack/AttackFollow.cs @@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Traits return new AttackActivity(self, newTarget, allowMove, forceAttack); } - protected override void OnStopOrder(Actor self) + public override void OnStopOrder(Actor self) { Target = Target.Invalid; base.OnStopOrder(self); diff --git a/OpenRA.Mods.Common/Traits/Attack/AttackOmni.cs b/OpenRA.Mods.Common/Traits/Attack/AttackOmni.cs index d1b6456014..a48206535e 100644 --- a/OpenRA.Mods.Common/Traits/Attack/AttackOmni.cs +++ b/OpenRA.Mods.Common/Traits/Attack/AttackOmni.cs @@ -29,7 +29,8 @@ namespace OpenRA.Mods.Common.Traits return new SetTarget(this, newTarget, allowMove); } - protected class SetTarget : Activity + // Some 3rd-party mods rely on this being public + public class SetTarget : Activity { readonly Target target; readonly AttackOmni attack;