-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix Disable/Encore interaction with Healing Wish/Lunar Dance/Baton Pass/U-turn in Gen IV #4519
Conversation
Travis tests have failedHey @Andi-Wang, Node.js: 7.7npm test
|
Mentioned in #2367 Thought I'd try my hand at contributing to a project. I think I've followed all the procedures, but it's more than possible I've missed or broken something. |
This would also change the behavior of Conversion 2, Mimic, Mirror Move, Sketch, Spite, Torment, and I am not sure if also anything else. Idk if that would be a conformant change. Maybe @Marty-D can give more details? |
Yeah. I'm going to go digging around some research threads to see if I can find testing results for anything that relies on last move interactions. I initially assumed that they would be treated the same. Like you said, if anyone can clarify off the top of their head, that'd be great. EDIT: Last Resort might also be affected by my changes depending on how it's coded. Can't check right now, but going to test if a mon that only knows U-turn and Last Resort can use Last Resort after being U-turned to (Last Resort should fail in-game). Also, what game is the simulator based on in 4th gen? This could be relevant since my changes might change Choice item+U-turn behaviour (there was a relevant bug in DP that was fixed in Platinum). EDIT2: Found some information in Smogon's DP research threads on how those moves work in isolation, but nothing on the interactions in question. |
Here's a fairly detailed breakdown: http://upcarchive.playker.info/0/upokecenter/content/pokemon-diamond-version-pearl-version-and-platinum-version-last-move-used.html |
From the chart, it seems that all "last move" cases are equivalent after Healing Wish / Lunar Dance / U-Turn 😄 |
Seems like a useful resource, thanks! If I'm reading the chart properly, it seems like any changes to interactions with other moves and those 4 switching moves should be correct? A full explanation is probably unnecessary, but just for clarity's sake: The main thing I was worried about with different games is that Diamond/Pearl have a bug where U-turning into a Choiced Pokemon that also has U-turn would lock the second Pokemon into U-turn. That in-game bug was fixed in Platinum (so if we're going off HGSS, then the bug shouldn't exist on PS). I haven't looked at how Choice items are coded, but it's possible that my changes break that interaction and reintroduce the D/P bug. I'll take another look at it when I have time today to check. |
Checked Last Resort and Choice item interactions: Last Resort works as it should (fails), and U-turn+Choice Band works as it should as well (does not lock second Pokemon with Choice Band into U-turn). Baton Pass is the only one that doesn't work with Choice items because it looks like being choice-locked is a volatile, which Baton Pass maintains. The fix should be pretty simple (remove the choicelock volatile when Baton Passing since I'm pretty sure Baton Pass shouldn't be passing that in the first place), so I'll just go in and do that. |
You actually just need a |
Ah, thanks. I'll remove the previous change and do that, then. EDIT: Hm. That was of silly of me since evidently I didn't understand what I was trying to do with git (was trying to revert the last push and just add the line in statuses.js). Gonna try and read up about it to see what's good practice in a situation like this. Trying to squash using the guide, but seems like I'm just making it worse, haha. |
…ss/U-turn in Gen IV
For us, it's fine to rebase when each review cycle is done. However, nowadays Github supports automatically rebasing when we finally merge your PR, so the rebase guide for PS can be considered obsolete now, and you shouldn't normally worry about it .... unless there are conflicts. Unfortunately, your Git manipulation seems to have generated conflicts where there used to be none, so you'll have to fix them :/
|
Okay, fair enough. So in the future, I just leave it during PR? In any case, I'll go fix the conflict. |
I fixed it myself, @Andi-Wang . And I shall correct myself: there was indeed a conflict with another PR just merged.
Yup |
Cool. Thanks for the help, @Slayer95 . |
I think this is ready? Not sure, though. I'll let @Marty-D merge this. |
Yep, looks great. Nice work, thanks very much @Andi-Wang! |
No description provided.