Every time i use shed tail with Orthworm the battle ends and i get the "a battle error has occured", be it wild or trainer battle.
battle log:
Pixelmon Version 9.1.3
Battle data 2023-02-15T18:00:50.965Z
Team #0 Player BiteEatRepeat
{EVSpeed:0s,StatsDefense:326s,IVAttack:31b,Growth:3b,Moveset:[{MoveID:"Shed Tail",MovePP:10b},{MoveID:"Iron Defense",MovePP:15b},{MoveID:"Earthquake",MovePP:10b},{MoveID:"Iron Head",MovePP:15b}],PersistentData:{},Gender:1b,originalTrainerUUID:[I;2118944590,1700479681,-1536613731,213799441],GigantamaxFactor:0b,Friendship:49s,eggCycles:-1,EVAttack:0s,StatsSpecialAttack:140s,IVSpDef:31b,CaughtBall:"poke_ball",IVHP:31b,EVHP:252s,ndex:968,palette:"none",UUID:[I;493901164,45173020,-2039360184,1628047489],StatsSpecialDefense:229s,Nature:24b,Ability:"EarthEater",StatsHP:344s,IVDefense:31b,Health:344,HeldItemStack:{id:"pixelmon:occa_berry",Count:1b},originalTrainer:"BiteEatRepeat",SpecFlags:[],DoesLevel:1b,EVDefense:0s,DynamaxLevel:0,Variant:"",StatsSpeed:166s,EVSpecialAttack:0s,StatsAttack:206s,IVSpeed:31b,Level:100,IVSpAtt:31b,NBT_VERSION:2b,EVSpecialDefense:252s,EXP:0,RelrnMoves:[],ribbons2:[]}
{EVSpeed:252s,StatsDefense:196s,IVAttack:31b,Growth:1b,Moveset:[{MoveID:"Bulk Up",MovePP:20b},{MoveID:"Close Combat",MovePP:5b},{MoveID:"Acrobatics",MovePP:15b},{MoveID:"Aqua Step",MovePP:10b}],PersistentData:{},Gender:0b,ribbon_display2:{receiver:'{"text":""}',received:1676482447301L,type:"destiny"},originalTrainerUUID:[I;2118944590,1700479681,-1536613731,213799441],GigantamaxFactor:0b,Friendship:44s,eggCycles:-1,EVAttack:252s,StatsSpecialAttack:186s,IVSpDef:31b,CaughtBall:"poke_ball",IVHP:31b,EVHP:0s,ndex:914,palette:"none",UUID:[I;-326861445,1107181757,-1861151955,664972039],StatsSpecialDefense:186s,Nature:7b,Ability:"Moxie",StatsHP:311s,IVDefense:31b,Health:311,HeldItemStack:{id:"pixelmon:rindo_berry",Count:1b},originalTrainer:"BiteEatRepeat",SpecFlags:[],DoesLevel:1b,EVDefense:0s,DynamaxLevel:0,Variant:"",StatsSpeed:269s,EVSpecialAttack:6s,StatsAttack:372s,IVSpeed:31b,Level:100,IVSpAtt:31b,NBT_VERSION:2b,EVSpecialDefense:0s,EXP:0,RelrnMoves:[],ribbons2:[{receiver:'{"text":""}',received:1676482447301L,type:"destiny"}]}
{EVSpeed:0s,StatsDefense:18s,IVAttack:11b,Growth:3b,Moveset:[{MoveID:"Splash",MovePP:40b},{MoveID:"Tackle",MovePP:35b}],PersistentData:{},Gender:1b,originalTrainerUUID:[I;2118944590,1700479681,-1536613731,213799441],GigantamaxFactor:0b,Friendship:68s,eggCycles:-1,EVAttack:0s,StatsSpecialAttack:12s,IVSpDef:24b,CaughtBall:"poke_ball",IVHP:11b,EVHP:0s,ndex:129,palette:"none",UUID:[I;-716032975,339824592,-1964719919,342007224],StatsSpecialDefense:15s,Nature:22b,Ability:"SwiftSwim",StatsHP:32s,IVDefense:2b,Health:0,originalTrainer:"BiteEatRepeat",SpecFlags:[],DoesLevel:1b,EVDefense:0s,DynamaxLevel:0,Variant:"",StatsSpeed:30s,EVSpecialAttack:0s,StatsAttack:9s,IVSpeed:9b,Level:15,IVSpAtt:23b,NBT_VERSION:2b,EVSpecialDefense:0s,EXP:0,RelrnMoves:[],ribbons2:[]}
Team #1 WildPokemon Sizzlipede
{EVSpeed:0s,StatsDefense:30s,IVAttack:20b,Growth:2b,Moveset:[{MoveID:"Ember",MovePP:25b},{MoveID:"Smokescreen",MovePP:20b},{MoveID:"Wrap",MovePP:20b},{MoveID:"Bug Bite",MovePP:20b}],PersistentData:{},Gender:0b,GigantamaxFactor:0b,Friendship:50s,eggCycles:-1,EVAttack:0s,StatsSpecialAttack:38s,IVSpDef:1b,CaughtBall:"poke_ball",IVHP:20b,EVHP:0s,ndex:850,palette:"none",UUID:[I;-14779796,-1247197982,-2077391181,1635029769],StatsSpecialDefense:30s,Nature:17b,Ability:"FlashFire",StatsHP:65s,IVDefense:11b,Health:65,SpecFlags:[],DoesLevel:1b,EVDefense:0s,DynamaxLevel:0,Variant:"",StatsSpeed:29s,EVSpecialAttack:0s,StatsAttack:37s,IVSpeed:6b,Level:25,IVSpAtt:20b,NBT_VERSION:2b,EVSpecialDefense:0s,EXP:0,RelrnMoves:[],ribbons2:[]}
Turn #0
Turn #1
Caught error in battle. Continuing...
null
com.pixelmonmod.pixelmon.battles.attacks.Attack.doesPersist(Attack.java:1312)
com.pixelmonmod.pixelmon.battles.controller.participants.PlayerParticipant.getMove(PlayerParticipant.java:449)
com.pixelmonmod.pixelmon.battles.controller.participants.PlayerParticipant.selectAction(PlayerParticipant.java:430)
com.pixelmonmod.pixelmon.battles.controller.BattleController.update(BattleController.java:453)
com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:248)
com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:13)
net.minecraftforge.eventbus.ASMEventHandler_206_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic)
net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85)
net.minecraftforge.eventbus.EventBus$$Lambda$3279/1649584604.invoke(Unknown Source)
net.minecraftforge.eventbus.EventBus.post(EventBus.java:302)
net.minecraftforge.eventbus.EventBus.post(EventBus.java:283)
net.minecraftforge.fml.hooks.BasicEventHooks.onPostWorldTick(BasicEventHooks.java:100)
net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:857)
net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:787)
net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:118)
net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642)
net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232)
net.minecraft.server.MinecraftServer$$Lambda$9669/900325969.run(Unknown Source)
java.lang.Thread.run(Thread.java:745)