Skip to content

Commit

Permalink
fix open pack modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
dpinones committed Oct 31, 2024
1 parent bdee9f1 commit a2c160e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/systems/game_system.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ mod game_system {

game.state = GameState::SELECT_MODIFIER_CARDS;
store.set_game(game);

let cards = open_blister_pack(world, ref store, game, MODIFIER_CARDS_PACK_ID);
store.set_blister_pack_result(BlisterPackResult { game_id, cards_picked: false, cards });
}

fn select_modifier_cards(ref world: IWorldDispatcher, game_id: u32, cards_index: Array<u32>) {
Expand Down Expand Up @@ -184,6 +187,7 @@ mod game_system {
let mut store: Store = StoreTrait::new(world);

let game = store.get_game(game_id);
assert(game.owner.is_non_zero(), errors::GAME_NOT_FOUND);

if game.substate == GameSubState::BEAST {
let (_, beast_system_address) = match world.resource(selector_from_tag!("jokers_of_neon-beast_system")) {
Expand Down

0 comments on commit a2c160e

Please sign in to comment.