Skip to content
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

Made Reflect Type handle 3rd types #3303

Merged
merged 2 commits into from
Oct 23, 2023
Merged

Conversation

LOuroboros
Copy link
Collaborator

Description

Closes #3266.
This PR updates Reflect Type's effect to handle 3rd types, including an edge case in which the target of Reflect Type may have lost its first 2 types, but acquired a 3rd one.

Misc. Changes:
-Turned the VARIOUS_TRY_REFLECT_TYPE into a callnative battle script.
-Introduced a macro IS_BATTLER_TYPELESS that checks if the specified battler has no valid type (or in other words, that checks if its 3 types are set to TYPE_MYSTERY.)

Discord contact info

lunos4026

@LOuroboros
Copy link
Collaborator Author

I just realized that this was only checking for the base forms of Arceus and Silvally, so I took the chance to update that as well.

@LOuroboros
Copy link
Collaborator Author

LOuroboros commented Oct 5, 2023

Solved the conflicts.

I was waiting for #3258 to be merged so I could make the new ``BS_TryReflectType use GetBattlerType, but that PR went to Master, so I guess this is ready for review.

@AsparagusEduardo
Copy link
Collaborator

that PR went to Master

Now in upcoming.

@LOuroboros
Copy link
Collaborator Author

that PR went to Master

Now in upcoming.

Got it. Will update this then 👍

@AsparagusEduardo
Copy link
Collaborator

Thinking about it, since this is a bugfix, this should go to master.
Also, it needs tests.

@LOuroboros
Copy link
Collaborator Author

Thinking about it, since this is a bugfix, this should go to master. Also, it needs tests.

Rather than fixing any bugs, it's completing an incomplete implementation, but alright, I'll rebase to Master.

Misc:
-Turned VARIOUS_TRY_REFLECT_TYPE into a callnative (BS_TryReflectType)
-Introduced a macro to to check for typeless Pokémon (Pokémon who have Mystery in all 3 type slots) in battle.
-Made the new BS_TryReflectType take into account the forms for Arceus and Silvally, rather than just their default form.
@LOuroboros LOuroboros changed the base branch from upcoming to master October 5, 2023 20:09
@LOuroboros
Copy link
Collaborator Author

Done. This PR is now targeting the Master branch.

I'm not willing to write tests myself though.

@LOuroboros
Copy link
Collaborator Author

LOuroboros commented Oct 23, 2023

Also, it needs tests.

Done.

@mrgriffin mrgriffin merged commit cd59e05 into rh-hideout:master Oct 23, 2023
1 check passed
@LOuroboros LOuroboros deleted the reflect branch October 23, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reflect Type does not copy types added by Forest's Curse or Trick-or-Treat
3 participants