Skip to content

Add HealAllYourPokemon mechanic for multi-Pokemon healing attacks#244

Merged
bcollazo merged 2 commits intomainfrom
claude/implement-audino-cards-rKjQj
Apr 28, 2026
Merged

Add HealAllYourPokemon mechanic for multi-Pokemon healing attacks#244
bcollazo merged 2 commits intomainfrom
claude/implement-audino-cards-rKjQj

Conversation

@bcollazo
Copy link
Copy Markdown
Owner

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

  • New Mechanic Variant: Added HealAllYourPokemon { amount: u32 } to the Mechanic enum to represent attacks that heal multiple friendly Pokémon
  • Attack Resolution: Implemented heal_all_your_pokemon_attack() function that applies damage to the opponent's active Pokémon while healing all friendly Pokémon in play
  • Helper Function: Added heal_all_pokemon() utility to iterate through all in-play Pokémon for a player and apply healing
  • Effect Mapping: Registered two effect text mappings:
    • "Heal 10 damage from each of your Pokémon." → HealAllYourPokemon { amount: 10 }
    • "Heal 30 damage from each of your Pokémon." → HealAllYourPokemon { amount: 30 }
  • Test Coverage: Added comprehensive tests for both Audino and Mega Audino-EX attacks, verifying correct damage and healing behavior

Implementation Details

The heal_all_your_pokemon_attack() function uses the existing active_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

claude added 2 commits April 28, 2026 09:28
- 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
@bcollazo bcollazo merged commit 1a8c3ce into main Apr 28, 2026
2 checks passed
@bcollazo bcollazo deleted the claude/implement-audino-cards-rKjQj branch April 28, 2026 09:43
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