diff --git a/core/src/me/msoucy/ptures/model/Engine.kt b/core/src/me/msoucy/ptures/model/Engine.kt index 496ed28..729d0c7 100644 --- a/core/src/me/msoucy/ptures/model/Engine.kt +++ b/core/src/me/msoucy/ptures/model/Engine.kt @@ -58,7 +58,7 @@ class Engine(private vararg val creatures : Pair) { private fun getTargetList(target : Target, selected : Int) : List { return when(target) { Target.Self -> listOf(currentCreature) - Target.Selected -> listOf(selected) + Target.Selected -> if (selected == -1) { listOf() } else { listOf(selected) } Target.Others -> creatures.indices.filter { it != currentCreature } Target.Opponents -> creatures.indices.filter { creatures[it].second != creatures[currentCreature].second } Target.All -> creatures.indices.toList()