From 2e03d5e4ee871188ed7eda36aeb0e50963b63e53 Mon Sep 17 00:00:00 2001 From: Benedict Etzel Date: Mon, 2 Sep 2024 10:45:50 +0200 Subject: [PATCH] fix: duplicate Bob's Buddy logging in Duos --- .../BobsBuddy/BobsBuddyInvoker.cs | 39 +++---------------- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/Hearthstone Deck Tracker/BobsBuddy/BobsBuddyInvoker.cs b/Hearthstone Deck Tracker/BobsBuddy/BobsBuddyInvoker.cs index 77c912390..643e09692 100644 --- a/Hearthstone Deck Tracker/BobsBuddy/BobsBuddyInvoker.cs +++ b/Hearthstone Deck Tracker/BobsBuddy/BobsBuddyInvoker.cs @@ -746,11 +746,6 @@ private IEnumerable GetAttachedEntities(int entityId) if(_input.isDuos) { DebugLog("---"); - if(_input.PlayerTeammate == null) - DebugLog("PlayerTeammate: null"); - if(_input.OpponentTeammate == null) - DebugLog("OpponentTeammate: null"); - if(_input.PlayerTeammate != null) { DebugLog("---"); @@ -765,35 +760,9 @@ private IEnumerable GetAttachedEntities(int entityId) DebugLog( $"[{quest.QuestCardId} ({quest.QuestProgress}/{quest.QuestProgressTotal}): {quest.RewardCardId}]"); } - - if(_input.OpponentTeammate != null) - { - DebugLog("---"); - DebugLog("OpponentTeammate: heroPower=" + _input.OpponentTeammate.HeroPower.CardId + ", used=" - + _input.OpponentTeammate.HeroPower.IsActivated + ", data=" - + _input.OpponentTeammate.HeroPower.Data); - DebugLog("Hand: " + string.Join(", ", _input.OpponentTeammate.Hand.Select(x => x.ToString()))); - foreach(var minion in _input.OpponentTeammate.Side) - DebugLog(minion.ToString()); - - foreach(var quest in _input.OpponentTeammate.Quests) - DebugLog( - $"[{quest.QuestCardId} ({quest.QuestProgress}/{quest.QuestProgressTotal}): {quest.RewardCardId}]"); - } - - if(_input.PlayerTeammate != null) + else { - DebugLog("---"); - DebugLog("PlayerTeammate: heroPower=" + _input.PlayerTeammate.HeroPower.CardId + ", used=" - + _input.PlayerTeammate.HeroPower.IsActivated + ", data=" - + _input.PlayerTeammate.HeroPower.Data); - DebugLog("Hand: " + string.Join(", ", _input.PlayerTeammate.Hand.Select(x => x.ToString()))); - foreach(var minion in _input.PlayerTeammate.Side) - DebugLog(minion.ToString()); - - foreach(var quest in _input.PlayerTeammate.Quests) - DebugLog( - $"[{quest.QuestCardId} ({quest.QuestProgress}/{quest.QuestProgressTotal}): {quest.RewardCardId}]"); + DebugLog("PlayerTeammate: null"); } if(_input.OpponentTeammate != null) @@ -810,6 +779,10 @@ private IEnumerable GetAttachedEntities(int entityId) DebugLog( $"[{quest.QuestCardId} ({quest.QuestProgress}/{quest.QuestProgressTotal}): {quest.RewardCardId}]"); } + else + { + DebugLog("OpponentTeammate: null"); + } } DebugLog("---");