Skip to content

Commit

Permalink
Include shot priority when calculating blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
avanwinkle committed Feb 4, 2024
1 parent 0258398 commit 7a1dc6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mpf/devices/shot.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ def event_hit(self, **kwargs):
if self.profile.config['block']:
min_priority = kwargs.get("_min_priority", {"all": 0})
min_shots = min_priority.get("shot", 0)
min_priority["shot"] = self.mode.priority if self.mode.priority > min_shots else min_shots
shot_priority = self.mode.priority + self.config["priority"]
min_priority["shot"] = shot_priority if shot_priority > min_shots else min_shots
return {"_min_priority": min_priority}

return None
Expand Down

0 comments on commit 7a1dc6f

Please sign in to comment.