no skillz
This commit is contained in:
@@ -138,6 +138,10 @@ impl Instance {
|
||||
.position(|p| p.id == player_id)
|
||||
.ok_or(err_msg("player_id not found"))?;
|
||||
|
||||
if self.players[i].cryps.iter().all(|c| c.skills.len() == 0) {
|
||||
return Err(err_msg("your cryps have no skills"));
|
||||
}
|
||||
|
||||
self.players[i].set_ready(true);
|
||||
|
||||
if self.phase == InstancePhase::Lobby && self.can_start() {
|
||||
|
||||
Reference in New Issue
Block a user