Skip to content

Commit

Permalink
fix discard
Browse files Browse the repository at this point in the history
  • Loading branch information
dpinones committed Nov 1, 2024
1 parent 1f416f5 commit 9a7f275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/status/round/beast.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl BeastImpl of BeastTrait {
let mut game_mode_beast = GameModeBeastStore::get(world, game.id);
let mut player_beast = PlayerBeastStore::get(world, game.id);

assert(player_beast.energy >= game_mode_beast.cost_play, errors::PLAYER_WITHOUT_ENERGY);
assert(player_beast.energy >= game_mode_beast.cost_discard, errors::PLAYER_WITHOUT_ENERGY);

let mut cards = array![];
let mut idx = 0;
Expand Down

0 comments on commit 9a7f275

Please sign in to comment.