-
Notifications
You must be signed in to change notification settings - Fork 782
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
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.