Skip to content

Commit

Permalink
fix Event Win Beast
Browse files Browse the repository at this point in the history
  • Loading branch information
dpinones committed Nov 2, 2024
1 parent c9052b3 commit fb2c351
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/models/status/round/beast.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ impl BeastImpl of BeastTrait {
player_beast.energy -= game_mode_beast.cost_play;
PlayerBeastStore::set(@player_beast, world);

if beast.health.is_zero() {

if beast.current_health.is_zero() {
let play_win_game_event = PlayWinGameEvent {
player: get_caller_address(), game_id, level: game.level, player_score: 0
};
Expand Down

0 comments on commit fb2c351

Please sign in to comment.