Skip to content

Commit

Permalink
Fixed an error with successful logs and Webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Plenyx committed Feb 14, 2024
1 parent 35db680 commit f5afd6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Forms/FormDiscordWebhooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ internal async Task ExecuteAllActiveWebhooksAsync(DpsReportJson reportJSON, List
{
var bossName = $"{reportJSON.Encounter.Boss}{(reportJSON.ChallengeMode ? " CM" : "")}";
var successString = (reportJSON.Encounter.Success ?? false) ? ":white_check_mark:" : "";
var lastTarget = reportJSON?.ExtraJson?.PossiblyLastTarget;
var extraJSON = (reportJSON.ExtraJson is null) ? "" : $"Recorded by: {reportJSON.ExtraJson.RecordedBy}\nDuration: {reportJSON.ExtraJson.Duration}\n{lastTarget.Name} ({Math.Round(100 - lastTarget.HealthPercentBurned, 2)}%)\nElite Insights version: {reportJSON.ExtraJson.EliteInsightsVersion}\n";
var lastTarget = (reportJSON?.ExtraJson?.PossiblyLastTarget is not null) ? $"\n{reportJSON.ExtraJson.PossiblyLastTarget.Name} ({Math.Round(100 - reportJSON.ExtraJson.PossiblyLastTarget.HealthPercentBurned, 2)}%)" : "";
var extraJSON = (reportJSON.ExtraJson is null) ? "" : $"Recorded by: {reportJSON.ExtraJson.RecordedBy}\nDuration: {reportJSON.ExtraJson.Duration}{lastTarget}\nElite Insights version: {reportJSON.ExtraJson.EliteInsightsVersion}\n";
var icon = "";
var bossData = Bosses.GetBossDataFromId(reportJSON.Encounter.BossId);
if (bossData is not null)
Expand Down

0 comments on commit f5afd6a

Please sign in to comment.