-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fixes Quick Draw #3724
Fixes Quick Draw #3724
Conversation
Drafting this until I figure out what is going on |
Couldn't figure out the problem. Each time I
Technically it could be kept open on draft but I don't know when I will pick it up again. |
So I accidentally fixed it. When I was fixing issue #3662 I realized the fix might apply here as well and it seems like it did. I moved all the Custap, Quick Draw, Quick Claw checks out of the function to a new one so it's only called from |
gProtectStructs[battler1].quickDraw = TRUE; | ||
// Quick Claw and Custap Berry | ||
if (!gProtectStructs[battler1].quickDraw | ||
&& ((holdEffectBattler1 == HOLD_EFFECT_QUICK_CLAW && RandomPercentage(RNG_QUICK_CLAW, 10)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick Claw has a 20% chance of boosting priority
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, #3737
Quick Draw was not functioning correctly. Even though the ability triggered it didn't attack first sometimes. Additionally the user randomly attacked first without the ability triggering. For some reason tests don't catch it so it has to be tested manually. I've ran it manually a lot of times but it would be good to have confirmation that it is fixed now.
Recording with Slowbro attacking first without the ability triggering.
quick_draw.mp4
Also I added a test for Quick Claw and removed
EWRAM_DATA u16 gRandomTurnNumber
. The only place it was used was the Quick Claw check which I replaced withRandomPercentage
Fixes #3662