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

Allow triggering nil events #4360

Merged
merged 2 commits into from
Aug 12, 2019
Merged

Conversation

NoahTheDuke
Copy link
Collaborator

In the event of a nil event, effect-completed will be called and the called trigger-event variation will be exited immediately.

This is to allow for conditionally triggering an event without having to split fork at every single later junction. Will make weaving wait-for through engine code much simpler and more readable.

To demonstrate how this will look, I refactored the existing :spent-stealth-credits calls to be awaitable (as they technically should be, cuz Net Mercur's handler is async (prompts yo)).

This is to allow for conditionally triggering an event without having to split fork
at every single later junction. Will make weaving `wait-for` through engine code
much simpler and more readable.
@NoahTheDuke NoahTheDuke merged commit 66414d6 into mtgred:master Aug 12, 2019
@NoahTheDuke NoahTheDuke deleted the nb/allow-nil-events branch August 12, 2019 02:07
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.

1 participant