Assist: Fail move if no moves have been found
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-11-12 13:03:18 +01:00
parent afe091eefa
commit 67762af0e7
3 changed files with 8 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ namespace Gen7 {
}
}
if (possibleMoves.length == 0){
// TODO: Log failure.
move.Fail();
return;
}
auto i = battle.Random.Get(possibleMoves.length);