More warning fixes
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using PkmnLib.Dynamic.Models;
|
||||
using PkmnLib.Dynamic.Models.Choices;
|
||||
using PkmnLib.Static.Utils;
|
||||
|
||||
namespace PkmnLib.Dynamic.AI;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user