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

Fix Ion Deluge interaction with VoltAbsorb/LightRod #3764

Merged
merged 4 commits into from
Dec 18, 2023

Conversation

DizzyEggg
Copy link
Collaborator

Fixes #3683

@@ -8324,7 +8289,7 @@ static bool32 IsAbilityAbsorbAffected(void)
else
moveType = gBattleMoves[gCurrentMove].type;

if (moveType == TYPE_ELECTRIC && GetBattlerAbility(gBattlerTarget) == ABILITY_VOLT_ABSORB)
if (moveType == TYPE_ELECTRIC && GetBattlerAbility(gBattlerTarget) == ability && gBattleMoves[gCurrentMove].effect != EFFECT_ION_DELUGE)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe target MOVE_TARGET_ALL_BATTLERS would be better instead of the effect so that it applies to all future moves with a similar effect?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You're absolutely right, this also works for Electric Terrain which my fix didn't include.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed

Copy link
Collaborator

Choose a reason for hiding this comment

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

Tests fail. I guess it's because it also needs to check for type?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Teatime tests failing, I guess it won't be this simple after all 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Alright, should be good now

@AlexOn1ine AlexOn1ine merged commit 1ec0333 into rh-hideout:master Dec 18, 2023
1 check passed
@DizzyEggg DizzyEggg deleted the ion_deluge branch December 18, 2023 15:58
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.

Ion Deluge triggers the users Lightning Rod/Volt Absorb
2 participants