diff --git a/EliteBGS/MainWindow.xaml b/EliteBGS/MainWindow.xaml
index 4412c87..f6f26e6 100644
--- a/EliteBGS/MainWindow.xaml
+++ b/EliteBGS/MainWindow.xaml
@@ -121,6 +121,7 @@
+
diff --git a/EliteBGS/MainWindow.xaml.cs b/EliteBGS/MainWindow.xaml.cs
index 5983d66..d5a7ca0 100644
--- a/EliteBGS/MainWindow.xaml.cs
+++ b/EliteBGS/MainWindow.xaml.cs
@@ -476,6 +476,16 @@ public partial class MainWindow : MetroWindow {
RefreshView();
}
+ private void Power_Click(object sender, RoutedEventArgs e) {
+ CombatZone transaction = GetTransaction(sender);
+ if (transaction == null) {
+ return;
+ }
+
+ transaction.Type = CombatZones.PowerCombatZone;
+ RefreshView();
+ }
+
private void Thargoid_Click(object sender, RoutedEventArgs e) {
CombatZone transaction = GetTransaction(sender);
if (transaction == null) {
@@ -713,4 +723,5 @@ public partial class MainWindow : MetroWindow {
private void PostToAll_Click(object sender, RoutedEventArgs e) {
PostToDiscordWebhook(Config.Global.Webhooks);
}
+
}
diff --git a/EliteBGS/Objective.cs b/EliteBGS/Objective.cs
index 755ce7f..f728d22 100644
--- a/EliteBGS/Objective.cs
+++ b/EliteBGS/Objective.cs
@@ -59,7 +59,9 @@ public class UITransaction : INotifyPropertyChanged {
return Visibility.Hidden;
}
- if (string.Compare(combat.Type, CombatZones.ShipCombatZone) == 0) {
+ // Both normal and power combat zones have special objectives
+ if (string.Compare(combat.Type, CombatZones.ShipCombatZone) == 0 ||
+ string.Compare(combat.Type, CombatZones.PowerCombatZone) == 0) {
return Visibility.Visible;
}