Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Apr 23, 2024
1 parent 207c327 commit 706e4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HearthDb/Cards.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ static Cards()
public static Card GetFromName(string name, Locale lang, bool collectible = true)
=> (collectible ? Collectible : All).Values.FirstOrDefault(x => x.GetLocName(lang)?.Equals(name, StringComparison.InvariantCultureIgnoreCase) ?? false);

public static Card GetFromDbfId(int dbfId, bool collectibe = true)
=> (collectibe ? CollectibleByDbfId : AllByDbfId).TryGetValue(dbfId, out var card) ? card : null;
public static Card GetFromDbfId(int dbfId, bool collectible = true)
=> (collectible ? CollectibleByDbfId : AllByDbfId).TryGetValue(dbfId, out var card) ? card : null;

private static bool IsDeflectOBot(Entity entity) => entity.CardId == CardIds.NonCollectible.Neutral.DeflectOBot || entity.CardId == CardIds.NonCollectible.Neutral.DeflectOBotTavernBrawl;
}
Expand Down

0 comments on commit 706e4bd

Please sign in to comment.