Skip to content

Commit

Permalink
Fix issue with main missile launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
hesto2 committed Sep 28, 2024
1 parent f8f44b8 commit 6f5e486
Show file tree
Hide file tree
Showing 2 changed files with 2,242 additions and 3,007 deletions.
3 changes: 1 addition & 2 deletions Logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ def can_spider(state: CollectionState, player: int) -> bool:
def can_missile(state: CollectionState, player: int, num_expansions: int = 1) -> bool:
if _get_options(state, player).missile_launcher.value:
can_shoot = state.has(SuitUpgrade.Missile_Launcher.value, player)
if num_expansions > 1:
return can_shoot and state.has(SuitUpgrade.Missile_Expansion.value, player, num_expansions - 1)
return can_shoot and (num_expansions <= 1 or state.has(SuitUpgrade.Missile_Expansion.value, player, num_expansions - 1))
return state.has(SuitUpgrade.Missile_Expansion.value, player, num_expansions)


Expand Down
Loading

0 comments on commit 6f5e486

Please sign in to comment.