diff --git a/common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/characterEdit/MaxWoundsSection.kt b/common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/characterEdit/MaxWoundsSection.kt index dffb7fdaa..c4f7c5765 100644 --- a/common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/characterEdit/MaxWoundsSection.kt +++ b/common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/characterEdit/MaxWoundsSection.kt @@ -48,15 +48,17 @@ fun MaxWoundsSection(character: Character, screenModel: CharacterScreenModel) { placeholder = stringResource(Str.points_auto_max_wounds_placeholder), ) - if (formData.hardyTalent.value) { - UserTipCard(UserTip.HARDY_TALENTS) - } + if (character.hasHardyTalent) { + if (formData.hardyTalent.value) { + UserTipCard(UserTip.HARDY_TALENTS) + } - CheckboxWithText( - text = stringResource(Str.points_label_hardy), - checked = formData.hardyTalent.value, - onCheckedChange = { formData.hardyTalent.value = it } - ) + CheckboxWithText( + text = stringResource(Str.points_label_hardy), + checked = formData.hardyTalent.value, + onCheckedChange = { formData.hardyTalent.value = it } + ) + } } } }