From ed10178ddcad98844ceaca5ab23a7631b047c680 Mon Sep 17 00:00:00 2001 From: gamma-delta <29877714+gamma-delta@users.noreply.github.com> Date: Thu, 10 Nov 2022 10:18:52 -0600 Subject: [PATCH] make gemini gambit actually work --- .../hexcasting/common/casting/operators/stack/OpDuplicateN.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/stack/OpDuplicateN.kt b/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/stack/OpDuplicateN.kt index 2df43d5f..fa86d50b 100644 --- a/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/stack/OpDuplicateN.kt +++ b/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/stack/OpDuplicateN.kt @@ -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, ctx: CastingContext): List { val count = args.getPositiveInt(1, argc) - return listOf(ListIota(List(count) { args[0] })) + return (List(count) { args[0] }) } }