make gemini gambit actually work

This commit is contained in:
gamma-delta 2022-11-10 10:18:52 -06:00
parent c9f3a4d56e
commit ed10178ddc

View file

@ -4,7 +4,6 @@ import at.petrak.hexcasting.api.spell.ConstManaAction
import at.petrak.hexcasting.api.spell.casting.CastingContext
import at.petrak.hexcasting.api.spell.getPositiveInt
import at.petrak.hexcasting.api.spell.iota.Iota
import at.petrak.hexcasting.api.spell.iota.ListIota
object OpDuplicateN : ConstManaAction {
override val argc: Int
@ -13,6 +12,6 @@ object OpDuplicateN : ConstManaAction {
override fun execute(args: List<Iota>, ctx: CastingContext): List<Iota> {
val count = args.getPositiveInt(1, argc)
return listOf(ListIota(List(count) { args[0] }))
return (List(count) { args[0] })
}
}