Skip to content

Commit 94cde56

Browse files
committed
Add missing null check
1 parent 8317a63 commit 94cde56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Models/New/NewCard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public static void Add(string name, string displayedName, int baseAttack, int ba
130130
// TODO Provide a function to create animated card textures
131131
card.animatedPortrait = animatedPortrait;
132132
}
133-
else if (specialAbilities.Contains(SpecialTriggeredAbility.TalkingCardChooser))
133+
else if (specialAbilities is not null && specialAbilities.Contains(SpecialTriggeredAbility.TalkingCardChooser))
134134
{
135135
// TODO: Make talking cards not depend on animated portraits
136136
CreateAnimatedPortrait(card);

0 commit comments

Comments
 (0)