Skip to content

Commit

Permalink
fix(Battlegrounds): Teron Gorefiend not triggering in Bob's Buddy
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Apr 23, 2024
1 parent 83db9be commit 1ba6f92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Hearthstone Deck Tracker/BobsBuddy/BobsBuddyUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ internal static Minion GetMinionFromEntity(MinionFactory minionFactory, bool pla
}
}

minion.game_id = entity.Id;
// As of 198037 the shop identity of the card is more important, because e.g. Teron Gorefiends hero power
// encodes the id from the shop. Luckily we have COPIED_FROM_ENTITY_ID for that.
var copiedFromId = entity.GetTag(GameTag.COPIED_FROM_ENTITY_ID);
minion.game_id = copiedFromId > 0 ? copiedFromId : entity.Id;

return minion;
}
Expand Down

0 comments on commit 1ba6f92

Please sign in to comment.