From b631f0e6f9f872f295010b9367ab20b56bccd03f Mon Sep 17 00:00:00 2001 From: miyucomics Date: Mon, 5 Aug 2024 17:28:05 -0400 Subject: [PATCH] Prepare for lang merge --- .../java/miyucomics/hexical/casting/patterns/OpBrainswept.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/miyucomics/hexical/casting/patterns/OpBrainswept.kt b/src/main/java/miyucomics/hexical/casting/patterns/OpBrainswept.kt index c6792d76..c955e206 100644 --- a/src/main/java/miyucomics/hexical/casting/patterns/OpBrainswept.kt +++ b/src/main/java/miyucomics/hexical/casting/patterns/OpBrainswept.kt @@ -12,6 +12,7 @@ class OpBrainswept : ConstMediaAction { override val argc = 1 override fun execute(args: List, ctx: CastingContext): List { val entity = args.getEntity(0, argc) + ctx.assertEntityInRange(entity) if (entity is MobEntity) return IXplatAbstractions.INSTANCE.isBrainswept(entity).asActionResult return (false).asActionResult