Skip to content

Commit

Permalink
feat(battlegrounds): better filtering of spells by tier
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Feb 18, 2024
1 parent 5a92b4a commit 178dc23
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Hearthstone Deck Tracker/Hearthstone/BattlegroundsDb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ private void Update(List<RemoteData.TagOverride>? tagOverrides)
_spellsByTier.Clear();

var baconSpells = Cards.All.Values
.Where(x => getTag(x, GameTag.TECH_LEVEL) > 0 && x.Type == CardType.BATTLEGROUND_SPELL);
.Where(x => (
getTag(x, GameTag.TECH_LEVEL) > 0
&& x.Type == CardType.BATTLEGROUND_SPELL
// seems to indicate whether the spell is in the pool, similar to IS_BACON_POOL_MINION
&& getTag(x, (GameTag)3081) == 1
));
foreach(var card in baconSpells)
{
var tier = getTag(card, GameTag.TECH_LEVEL);
Expand Down

0 comments on commit 178dc23

Please sign in to comment.