Skip to content

Commit ba27e25

Browse files
Fix inverted condition causing incorrect behaviour and log spam
1 parent 73d6904 commit ba27e25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

InscryptionAPI/Card/CardExtensionsCosts.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static int BonesCost(this PlayableCard card)
7878
/// </summary>
7979
public static List<GemType> GemsCost(this PlayableCard card)
8080
{
81-
if (card != null && card.Info != null) {
81+
if (card == null || card.Info == null) {
8282
InscryptionAPIPlugin.Logger.LogWarning("[GemsCost] Couldn't find PlayableCard or CardInfo, returning empty list");
8383
return new();
8484
}

0 commit comments

Comments
 (0)