More warning fixes

This commit is contained in:
2025-05-02 16:04:54 +02:00
parent dabb26e4f2
commit b69ba6eaff
56 changed files with 56 additions and 80 deletions

View File

@@ -36,7 +36,7 @@ public class RandomAI : PokemonAI
continue;
}
var target = targets[_random.GetInt(targets.Length)];
var moveTurnChoice = new MoveChoice(pokemon, move!, target.side, target.position);
var moveTurnChoice = new MoveChoice(pokemon, move, target.side, target.position);
if (battle.CanUse(moveTurnChoice))
{
return moveTurnChoice;