Fixes invalid battle state

This commit is contained in:
Deukhoofd committed 2024-11-01 13:25:38 +01:00
1 parent b43e1dc15e
commit 1df35c1f50
1 file changed
+4
+4
View File
@@ -133,6 +133,10 @@ public class BattleSideImpl : ScriptSource, IBattleSide
_pokemon = new IPokemon?[numberOfPositions]; _pokemon = new IPokemon?[numberOfPositions];
_setChoices = new ITurnChoice?[numberOfPositions]; _setChoices = new ITurnChoice?[numberOfPositions];
_fillablePositions = new bool[numberOfPositions]; _fillablePositions = new bool[numberOfPositions];
for (byte i = 0; i < numberOfPositions; i++)
{
_fillablePositions[i] = true;
}
Battle = battle; Battle = battle;
VolatileScripts = new ScriptSet(); VolatileScripts = new ScriptSet();
} }