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 conditions not being respected #179

Merged
merged 3 commits into from
Sep 17, 2022
Merged

Fix conditions not being respected #179

merged 3 commits into from
Sep 17, 2022

Conversation

oskarrough
Copy link
Owner

@oskarrough oskarrough commented Sep 17, 2022

A couple of things were wrong:

  • The card conditions were not being run properly
  • Cleave had the wrong target

This snippet is useful for testing in the browser console:

stw.game.enqueue({type: 'addCardToHand', card: stw.createCard('Mask of the Faceless')});
stw.update();
stw.dealCards();

fixes #178
fixes #177
fixes #176

@oskarrough
Copy link
Owner Author

Many thanks @user-09876

@oskarrough oskarrough merged commit 91bff35 into main Sep 17, 2022
@oskarrough oskarrough deleted the fix/clash-condition branch March 10, 2023 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant