Add missing PlayNotification calls to SelectTarget.

This commit is contained in:
abc013
2020-10-30 16:28:38 +01:00
committed by Paul Chote
parent a366e37014
commit 672172d1f1
8 changed files with 8 additions and 22 deletions

View File

@@ -228,7 +228,14 @@ namespace OpenRA.Mods.Common.Traits
var power = Instances.FirstOrDefault(i => !i.IsTraitPaused);
power?.SelectTarget(power.Self, Key, Manager);
if (power == null)
return;
Game.Sound.PlayToPlayer(SoundType.UI, Manager.Self.Owner, Info.SelectTargetSound);
Game.Sound.PlayNotification(power.Self.World.Map.Rules, power.Self.Owner, "Speech",
Info.SelectTargetSpeechNotification, power.Self.Owner.Faction.InternalName);
power.SelectTarget(power.Self, Key, Manager);
}
public virtual void Activate(Order order)