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 top of evo cards removal #259

Merged

Conversation

DanieloV
Copy link
Contributor

@DanieloV DanieloV commented Sep 17, 2024

Dependent on #256

The issue was caused by the movement of the cards from the hiddenzone which is not a true movement in game terms. Was required to make cards like Pangaea's Will and Pouch Shell work properly. So that when they remove the top card, to no trigger summon effects but still trigger continuous effects of cards.

It needed refactoring in many places, but the changes are small. It mostly transitions various implementations to use the fx.When. Also I think if we get all the cards to use fx.When in the future we can better handle effects when multiple cards have an effect triggered at the same time by just modifying the implementation in this method. Maybe even a selectable effect queue at some point.

I split it into relevant commits so that it's a bit easier to review.

@DanieloV DanieloV mentioned this pull request Sep 17, 2024
@DanieloV DanieloV force-pushed the fix-top-of-evo-cards-removal branch from 3c71c21 to ed8105d Compare September 19, 2024 07:24
@sindreslungaard sindreslungaard merged commit 7029ca7 into sindreslungaard:master Sep 29, 2024
1 check passed
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