Add HealAllYourPokemon mechanic for multi-Pokemon healing attacks#244
Merged
Add HealAllYourPokemon mechanic for multi-Pokemon healing attacks#244
Conversation
- Add HealAllYourPokemon mechanic variant to support healing all Pokemon with one attack - Implement 'Heal 10 damage from each of your Pokémon' (Audino B3 140) - Implement 'Heal 30 damage from each of your Pokémon' (Mega Audino ex B3 141/189/202) - Add comprehensive tests for healing mechanic at Pokemon API level https://claude.ai/code/session_016skACacbdAnKXSwzkzuBqK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements support for attack mechanics that heal all of your Pokémon, enabling attacks like Audino's "Healing Light" and Mega Audino-EX's "Heartfelt Shine" to function correctly.
Key Changes
HealAllYourPokemon { amount: u32 }to theMechanicenum to represent attacks that heal multiple friendly Pokémonheal_all_your_pokemon_attack()function that applies damage to the opponent's active Pokémon while healing all friendly Pokémon in playheal_all_pokemon()utility to iterate through all in-play Pokémon for a player and apply healingHealAllYourPokemon { amount: 10 }HealAllYourPokemon { amount: 30 }Implementation Details
The
heal_all_your_pokemon_attack()function uses the existingactive_damage_effect_doutcome()pattern to ensure the opponent takes damage while simultaneously healing all friendly Pokémon. The healing is applied to every Pokémon slot (active and benched) that contains a Pokémon, matching the intended game mechanics.https://claude.ai/code/session_016skACacbdAnKXSwzkzuBqK