We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 876c0af commit 8024c91Copy full SHA for 8024c91
app/src/main/java/io/github/fate_grand_automata/ui/skill_maker/SkillMakerAtk.kt
@@ -56,10 +56,10 @@ private fun SelectNps(
56
57
val canSelect = numberOfCardsSelected + numberOfNPs + 1 <= 3
58
59
- val selectedColor = when (servantNumber) {
60
- 1 -> R.color.colorServant1
61
- 2 -> R.color.colorServant2
62
- 3 -> R.color.colorServant3
+ val selectedColor = when (npSequence.indexOf("$servantNumber")) {
+ 0 -> R.color.colorServant1
+ 1 -> R.color.colorServant2
+ 2 -> R.color.colorServant3
63
else -> R.color.colorAccent
64
}
65
0 commit comments