Skip to content

Commit

Permalink
fix: Souvenir Stand not simulating correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Aug 26, 2024
1 parent 31f77e6 commit dec8f46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Hearthstone Deck Tracker/LogReader/Handlers/PowerHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ public void Handle(string logLine, IHsGameState gameState, IGame game)
if(!game.Entities.ContainsKey(entityId))
game.Entities.Add(entityId, new Entity(entityId));
var entity = game.Entities[entityId];
if(string.IsNullOrEmpty(entity.CardId) || entity.HasTag(GameTag.BACON_IS_MAGIC_ITEM_DISCOVER))
if(
string.IsNullOrEmpty(entity.CardId) ||
entity.HasTag(GameTag.BACON_IS_POTENTIAL_TRINKET) ||
entity.HasTag(GameTag.BACON_TRINKET)
)
entity.CardId = cardId;
entity.Info.LatestCardId = cardId;
if(type == "SHOW_ENTITY")
Expand Down

0 comments on commit dec8f46

Please sign in to comment.