-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Battle Item Tests + critical fixes + new test macro #2940
Battle Item Tests + critical fixes + new test macro #2940
Conversation
PLS READ COMMENT THIS IS KNOWN_FAILING
currently known failing, bc of weird bug. see comment.
thanks griffin <3 Co-Authored-By: Martin Griffin <838573+mrgriffin@users.noreply.github.com>
Ready for review. Any input on issue 3. would be highly appreciated as I dont have a the time to deep dive on this one rn. |
idk if this is the problem, but: static const u8 sText_PkmnUsedXToGetPumped[] = _("{B_SCR_ACTIVE_NAME_WITH_PREFIX} used\n{B_LAST_ITEM} to get pumped!"); void HandleAction_UseItem(void)
{
gActiveBattler = gBattlerAttacker = gBattlerByTurnOrder[gCurrentTurnActionNumber]; We don't set |
Idk if tests support that but there are plenty of double battle bugs related to items, it would be nice to add tests for those too, I'm pretty sure some will fail based on opened issues. |
Could you provide some examples of those issues so I can write some targeted tests? :) |
#2967 |
Thanks I will look into it |
no longer needed since testing is done.
issue 3 fixed, pls review :) |
Test for all the Battle items, categorized by their battle effects.
contributions are welcome.
Double checking the tests for plausability is also welcomed and probably needed.
Also add several fixes and new additions in relation to these tests:
Example use:
PLAYER(SPECIES_WOBBUFFET) { MovesWithPP({MOVE_TACKLE, 1}, {MOVE_CONFUSION, 20}); }
gChosenMovePos
is correctly assigned for items that target a move#2939 Description:
#2933 Description:
TO-DO
Current Issues
Full Heal curing confusion is broken but not detected in the test (should be fixed with several fixes to battle items #2939)Hyper Potion check passes when it shouldnt -> other hp restoring tests probably not correct aswell.Dire Hit test fails when "Wobbuffet vs Wobbuffet" because "Foe Wobbuffet" is displayed. Doesnt happen when "Wobbuffet vs Anything else" more context on discordRelevant GIFS
Dire Hit issue:
Issue(s) that this PR fixes
Fixes #2935
Fixes #2938
Discord contact info
Salem#3258