Skip to content

Commit 9640eb9

Browse files
committed
Ensure Deathrattle is set on cards that are missing the tag
1 parent 58d440e commit 9640eb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HearthDb/Card.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,6 @@ public string GetLocText(Locale lang)
205205
public bool Reborn => _reborn ??= Entity.GetTag(REBORN) > 0;
206206

207207
private bool? _deathrattle;
208-
public bool Deathrattle => _deathrattle ??= Entity.GetTag(DEATHRATTLE) > 0;
208+
public bool Deathrattle => _deathrattle ??= (Entity.GetTag(DEATHRATTLE) > 0 || Entity.GetLocString(CARDTEXT_INHAND, Locale.enUS)?.Contains("Deathrattle:") ?? false);
209209
}
210210
}

0 commit comments

Comments
 (0)