Add missing PlayNotification calls to SelectTarget.
This commit is contained in:
@@ -78,13 +78,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public override void SelectTarget(Actor self, string order, SupportPowerManager manager)
|
||||
{
|
||||
if (info.UseDirectionalTarget)
|
||||
{
|
||||
Game.Sound.PlayToPlayer(SoundType.UI, manager.Self.Owner, Info.SelectTargetSound);
|
||||
Game.Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech",
|
||||
Info.SelectTargetSpeechNotification, self.Owner.Faction.InternalName);
|
||||
|
||||
self.World.OrderGenerator = new SelectDirectionalTarget(self.World, order, manager, Info.Cursor, info.DirectionArrowAnimation, info.DirectionArrowPalette);
|
||||
}
|
||||
else
|
||||
base.SelectTarget(self, order, manager);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user