Skip to content

fix start_lp=1 in tag duel#3137

Merged
mercury233 merged 1 commit into
masterfrom
mercury233-patch-1
Jul 10, 2026
Merged

fix start_lp=1 in tag duel#3137
mercury233 merged 1 commit into
masterfrom
mercury233-patch-1

Conversation

@mercury233

Copy link
Copy Markdown
Collaborator

was setting maxLP to 0 if start_lp is 1

should we use (start_lp + 1) / 2 ?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes LP bar rendering in Tag Duel when start_lp is set to 1, preventing maxLP from becoming 0 (and avoiding divide-by-zero / invalid modulo behavior) while keeping the existing “Tag uses half of start LP” display logic.

Changes:

  • Add <algorithm> include to support std::max.
  • Only draw the LP bar when start_lp > 0 (instead of any non-zero value).
  • Clamp Tag Duel maxLP to at least 1 to avoid start_lp / 2 becoming 0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mercury233 mercury233 merged commit d706084 into master Jul 10, 2026
17 checks passed
@mercury233 mercury233 deleted the mercury233-patch-1 branch July 10, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants