make gemini gambit actually work
This commit is contained in:
parent
c9f3a4d56e
commit
ed10178ddc
1 changed files with 1 additions and 2 deletions
|
@ -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] })
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue