Skip to content

Commit

Permalink
fix: duplicate Bob's Buddy logging in Duos
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Sep 2, 2024
1 parent 5ee6110 commit a399233
Showing 1 changed file with 6 additions and 33 deletions.
39 changes: 6 additions & 33 deletions Hearthstone Deck Tracker/BobsBuddy/BobsBuddyInvoker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -746,11 +746,6 @@ private IEnumerable<Entity> 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("---");
Expand All @@ -765,35 +760,9 @@ private IEnumerable<Entity> 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)
Expand All @@ -810,6 +779,10 @@ private IEnumerable<Entity> GetAttachedEntities(int entityId)
DebugLog(
$"[{quest.QuestCardId} ({quest.QuestProgress}/{quest.QuestProgressTotal}): {quest.RewardCardId}]");
}
else
{
DebugLog("OpponentTeammate: null");
}
}

DebugLog("---");
Expand Down

0 comments on commit a399233

Please sign in to comment.