Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Prevent losing if matches are predicted
Browse files Browse the repository at this point in the history
This will allow for "saving grace" combos that go over the path's end.

I will NOT be adding functionality that prevents the shooter from shooting if there are spheres on top of the exit, unlike Zuma; this goes against the "saving grace" mechanic and would make this change moot.
  • Loading branch information
ShamblesSM committed Feb 14, 2023
1 parent 97a0fee commit 2d4a287
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SphereGroup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ function SphereGroup:move(offset)
not self:hasShotSpheres() and
not self:hasLossProtectedSpheres() and
not self:hasGhostSpheres() and
not self.map.level:areMatchesPredicted() and
not self.map.isDummy
then
self.map.level:lose()
Expand Down

0 comments on commit 2d4a287

Please sign in to comment.