Implement Forretress Enormous Explosion attack (B2b 046, B2b 104)#206
Open
Implement Forretress Enormous Explosion attack (B2b 046, B2b 104)#206
Conversation
Adds new SelfAndBothBenchDamage mechanic for attacks that deal damage to the opponent's active, self-damage, and splash damage to all Benched Pokémon on both sides (e.g. Enormous Explosion: 100 to opponent active, 100 to self, 50 to all bench). https://claude.ai/code/session_01RAhiydFgn4uTrNgCKE8PZL
Replace direct apply_damage() calls in the effect callback with a new full_targets_damage_doutcome() helper that accepts (damage, player, in_play_idx) triples, allowing self-damage and own-bench damage to go through handle_damage_only/handle_knockouts like all other attack damage. https://claude.ai/code/session_01RAhiydFgn4uTrNgCKE8PZL
Extract apply_full_targets() as the single shared core that handles attack name resolution, handle_damage_only, additional effects, and handle_knockouts. damage_effect_mutation now converts its implicit- opponent (damage, idx) targets to full triples and delegates, while full_targets_damage_mutation delegates directly — no duplicated logic. https://claude.ai/code/session_01RAhiydFgn4uTrNgCKE8PZL
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.
Adds new SelfAndBothBenchDamage mechanic for attacks that deal damage
to the opponent's active, self-damage, and splash damage to all Benched
Pokémon on both sides (e.g. Enormous Explosion: 100 to opponent active,
100 to self, 50 to all bench).
https://claude.ai/code/session_01RAhiydFgn4uTrNgCKE8PZL