no more targeting KO cryps
This commit is contained in:
parent
5c86a6411c
commit
a8672bbd45
@ -322,10 +322,11 @@ impl Game {
|
||||
let team = self.team_by_id(team_id);
|
||||
|
||||
// is the target in the team?
|
||||
match team.cryp_by_id(cryp_id) {
|
||||
Some(c) => c,
|
||||
None => return Err(err_msg("cryp not in team")),
|
||||
};
|
||||
let cryp = team.cryp_by_id(cryp_id).ok_or(err_msg("cryp not in team"))?;
|
||||
|
||||
if cryp.is_ko() {
|
||||
return Err(err_msg("you cannot target ko cryps"));
|
||||
}
|
||||
}
|
||||
|
||||
// set the target
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user