Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added correct handling for pledge moves #637

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

caymansimpson
Copy link
Contributor

Right now, pledge moves are incorrectly handled and overrode, so that if Piplup used Water Pledge and Cyndaquil followed up with Fire Pledge, we would set Cyndaquil's move as Water Pledge. This is a problem when we update the mon with a request, because there'd be a conflict of moves and it will raise a Error

Mentioned here: #628

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.65%. Comparing base (f458350) to head (dc86161).
Report is 71 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #637      +/-   ##
==========================================
+ Coverage   83.38%   85.65%   +2.27%     
==========================================
  Files          39       42       +3     
  Lines        3918     4301     +383     
==========================================
+ Hits         3267     3684     +417     
+ Misses        651      617      -34     

["", "switch", "p2a: Primarina", "Primarina, L50, F, shiny", "169/169"],
["", "switch", "p2b: Decidueye", "Decidueye-Hisui, L50, F, shiny", "171/171"],
["", ""],
["", "-terastallize", "p2a: Primarina", "Poison"],
Copy link
Owner

Choose a reason for hiding this comment

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

why tera here? or is it just copied from a raw battle log?

Copy link
Contributor Author

@caymansimpson caymansimpson Nov 17, 2024

Choose a reason for hiding this comment

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

Ah yeah 😅 I just copied it from my fuzz testing logs. I can edit it down for clarity!

@hsahovic hsahovic merged commit 0f9cbee into hsahovic:master Nov 18, 2024
1 of 6 checks passed
@caymansimpson caymansimpson deleted the pledge branch November 25, 2024 15:16
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