Skip to content

Commit

Permalink
fix: only show Buddies on Twitch when enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Aug 1, 2023
1 parent d276fcb commit 9788eb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Hearthstone Deck Tracker/Live/BoardStateWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ private int DbfId(Entity? e)

private int? BuddyDbfId(Player player)
{
if(Core.Game.GameEntity?.GetTag(GameTag.BACON_BUDDY_ENABLED) == 0)
return null;
var hero = player.Board.FirstOrDefault(x => x.IsHero);
var buddyDbfId = hero?.GetTag(GameTag.BACON_COMPANION_ID);
if(buddyDbfId == 0)
Expand Down

0 comments on commit 9788eb9

Please sign in to comment.