Zinnia, Valley's Voice Implementation with OffspringDelayedTriggeredAbility added to OffspringAbility.java#14595
Zinnia, Valley's Voice Implementation with OffspringDelayedTriggeredAbility added to OffspringAbility.java#14595sneddigrolyat wants to merge 3 commits into
Conversation
OffspringAbility.java updated with new OffspringDelayedTriggeredAbility for implementation of ZinniaValleysVoice
Add Zinnia, Valley's Voice
Add ZinniaValleysVoice.java in conjunction with changes to OffspringAbility.java with new OffspringDelayedTriggeredAbility
Handling Offspring as a delayed triggered ability handily sidesteps the engine bug that is making it currently impossible to correctly implement Zinnia (it's currently impossible to have multiple independent copies of linked abilities, so paying one offspring cost would count for each instance of offspring's triggered ability no matter what you do) but it makes Offspring not work correctly; to test this interaction you should:
The creature with Offspring must not copy itself when it enters the battlefield, because it no longer has the linked triggered ability. Your change makes it so that they do still copy themselves. Please note that AI does not understand the rules of magic, so AI-generated code is even less likely to be relevant or applicable when contributing to XMage than in other scenarios. |
|
If you're going to use AI to assist your coding, you must still understand what the code is doing and be capable of reviewing it. Otherwise, it's just a waste of maintainer attention. |
|
@Grath Very helpful feedback. Thank you! @xenohedron Very sorry, I don't want to waste anyone's time. I made my updated PR #14609 |
Zinnia, Valley's Voice Implementation with OffspringDelayedTriggeredAbility added to OffspringAbility.java. I've tested that playing a creature with offspring gives 2 prompts to pay for offspring (and gives correct number of tokens and counters for each scenario), playing creature without offspring prompts once to pay for offspring, and playing a land doesn't prompt for offspring.