-
Notifications
You must be signed in to change notification settings - Fork 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 Dancer, adds Revelation Dance interactions with Z-Move, Roost and typeless mons #5133
Fixes Dancer, adds Revelation Dance interactions with Z-Move, Roost and typeless mons #5133
Conversation
The CI fails. |
Are you able to make it fail locally by running at 4 threads? |
Yes, while running locally at 4 threads the test fails |
What does the replay looks like? (you can open the elf file on mGBA) |
Wait, that's too many tests. Let's see if it fails just with |
Ok, finally made it fail locally with just Dancer tests: |
The Dancer test that fails seems to only fail if handled by thread 0. Maybe a problem with the test runner? I tried moving the Dancer test to above the previous one and it passes after doing so (with 4 threads). |
In some cases, it seems that the battler sent to But @AlexOn1ine identified that - for (battler = 0; battler < MAX_BATTLERS_COUNT; battler++)
+ for (battler = 0; battler < gBattlersCount; battler++)
{
if (GetBattlerAbility(battler) == ABILITY_DANCER && !gSpecialStatuses[battler].dancerUsedMove)
{
if (turnOnHitmarker)
gHitMarker |= HITMARKER_ATTACKSTRING_PRINTED;
if (!nextDancer || (gBattleMons[battler].speed < gBattleMons[nextDancer & 0x3].speed))
nextDancer = battler | 0x4;
}
}
if (nextDancer && AbilityBattleEffects(ABILITYEFFECT_MOVE_END_OTHER, nextDancer & 0x3, 0, 0, 0))
effect = TRUE; |
It seems to me that it still had the speeds of the battlers from the previous test ("Dancer triggers from slowest to fastest") hence it using battler = 3 (which is the slowest in that test). But now with the fix, it should pick the right battler. |
Adds Tests for Revelation Dance.
The following Revelation Dance interactions were added:
Also fixes Dancer-called moves not updating their type according to the new user of the move.
Feature(s) this PR does NOT handle:
When merging to upcoming, will be necessary to modify the checks for CheckDynamicMoveType.
Discord contact info
PhallenTree