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

[J21] Implement Pool of Vigorous Growth #12734

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

karapuzz14
Copy link
Contributor

Implemented Pool of Vigorous Growth, which effect was based on existing Momir's Emblem effect.
I was doubtful about card pool size of its random ability because of possible format limitations, but experiments showed that this card can create a copy of illegal card in Arena (attached screenshot).
However, I decided to set up limitations for joke sets and custom sets. I'm eagerly waiting for comments and opinions.

image

@github-actions github-actions bot added the cards label Aug 25, 2024
@karapuzz14 karapuzz14 changed the title Pool of Vigorous Growth [J21] Implement Pool of Vigorous Growth Aug 25, 2024
Copy link
Member

@JayDi85 JayDi85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks fine except AI workaround — see comments


int xValue = source.getManaCostsToPay().getX();
if (game.isSimulation()) {
// Create dummy token to prevent multiple DB find cards what causes H2 java.lang.IllegalStateException if AI cancels calculation because of time out
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain details about broken AI here? Is it catch error all time or at random? How to reproduce that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that's just old comment from Momir's Emblem implementation. I decided that it's known issue and just left the same comment as explanation.
I think it says about next issue:
#7014

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this trick with dummy token is also stolen from here:

// Create dummy token to prevent multiple DB find cards what causes H2 java.lang.IllegalStateException if AI cancels calculation because of time out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants