-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 [BUG] #5081 Wrong visual text when using priority moves on Psychic Terrain #5091
Fix [BUG] #5081 Wrong visual text when using priority moves on Psychic Terrain #5091
Conversation
…oves on Psychic Terrain
Does your PR's behaviour in Double Battles match mainline? (Message/check plays from right to left) DoublesMisty.mp4 |
I'm not sure this is applicable at the moment, since by current definition Psychic Terrain cannot block moves that target multiple or adjacent Pokémon even if they become priority moves. |
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.
Just one change is necessary, since the BattleScene is called through globalScene
now.
Co-authored-by: Madmadness65 <[email protected]>
Thanks, I've committed the change. |
What are the changes the user will see?
When battling on Psychic Terrain the user will now get battle text that properly reflects which Pokémon was protected from a priority move blocked by the terrain.
Why am I making these changes?
Currently the text says the user of the move is protected by the Psychic Terrain, that can be confusing for players. More over it withholds information from the player about which Pokémon is being targeted by the opponent in double battles.
Fixes #5081
What are the changes from a developer perspective?
All changes occurred in src/phases/move-phase.ts. Changed the arguments passed to the function
getTerrainBlockMessage()
.Previously the argument list was:
getTerrainBlockMessage(this.pokemon, this.scene.arena.getTerrainType())
which would pass the Pokémon that used the move along to rather that the target of the move.It was changed to:
getTerrainBlockMessage(targets[0], this.scene.arena.getTerrainType())
.Screenshots/Videos
Before:
Psychic.Terrain.Text.Bug.mp4
After:
FixedPsychicTerrainVisualText.mp4
How to test the changes?
My overrides.ts file only gave Pokémon the psychic surge ability and priority moves to test. Separate tests forced opponent move sets to have priority moves as well. Didn't feel the need for automated tests, and there are no special requirements to test if this works.
Checklist
beta
as my base branchnpm run test
)npm run create-test
) or updated existing tests related to the PR's changes?Are there any localization additions or changes? If so: