diff --git a/app/src/main/java/io/github/fate_grand_automata/ui/skill_maker/SkillMakerViewModel.kt b/app/src/main/java/io/github/fate_grand_automata/ui/skill_maker/SkillMakerViewModel.kt index a8a96ddb7..46cffc585 100644 --- a/app/src/main/java/io/github/fate_grand_automata/ui/skill_maker/SkillMakerViewModel.kt +++ b/app/src/main/java/io/github/fate_grand_automata/ui/skill_maker/SkillMakerViewModel.kt @@ -56,7 +56,7 @@ class SkillMakerViewModel @Inject constructor( private var _commandSpell: MutableStateFlow = MutableStateFlow( - skillCommand.value.count { + skillCommand.count { it is SkillMakerEntry.Action && it.action is AutoSkillAction.CommandSpell } )