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

Config for trying to catch a Trainer's Pokémon #3684

Merged
merged 2 commits into from
Dec 10, 2023

Conversation

Bassoonian
Copy link
Collaborator

In Gen4+, trying to catch a Trainer's Pokémon by using a Poké Ball doesn't actually consume the item.

Discord contact info

bassoonian

@@ -1234,7 +1234,8 @@ void ItemUseInBattle_BagMenu(u8 taskId)
else
{
PlaySE(SE_SELECT);
RemoveUsedItem();
if (!(B_TRY_CATCH_TRAINER_BALL >= GEN_4 && (ItemId_GetBattleUsage(gSpecialVar_ItemId) == EFFECT_ITEM_THROW_BALL) && (gBattleTypeFlags & BATTLE_TYPE_TRAINER)))
RemoveUsedItem();
Copy link
Collaborator

@AlexOn1ine AlexOn1ine Dec 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ngl, I'm now questioning myself if it's really nicer that way. Maybe a 3rd person could chime in or you make the final decision.

/Edit: Actually no. I think that's better.

@AlexOn1ine AlexOn1ine merged commit ec9cc9a into rh-hideout:upcoming Dec 10, 2023
1 check passed
@Bassoonian Bassoonian deleted the trainerballs branch December 27, 2023 11:22
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.

2 participants