-
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
[don’t merge] Fix and test Rain of Riches #12127
base: master
Are you sure you want to change the base?
Conversation
912a511
to
4f6d0b7
Compare
This is the same fix I used in #9785. According to Jaydi, there is a problem with adding |
Well I have provided an actual reason for the change: the current If that is still wrong to do, I'd need an actual situation and a reasoning where it could go wrong. |
Yeah that was the same reasoning I provided e.g. here. So you can ask jaydi what's wrong with it, which is something I've been trying to do for a while now. |
Adding ApplyEffects to fix something is popular hack and the biggest bad smell. It’s not a real fix in most use cases. |
But it is not an hack here. You have to reapply the continuous effect inbetween mana being paid for casting the spell (since you can not know a Treasure is used before), and the spell being moved to the stack and SPELL_CAST triggers. The current engine does not have proper game info on Spell Cast firing. |
I’ll look to it later. |
It’s not about reapply single effect. A real game can have hundreds effects. It’s about whole game “reset”: another effects, events, triggers, etc. That’s why it’s a dangerous command. |
Haven't investigated that one yet, but I hugely suspect #12089 to be the same issue of not processing the last payment properly on activating abilities: |
I support merging this change. While indiscriminate usage of |
@JayDi85 so how it's looking? |
In todo |
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.
Without any actionable feedback there is no point in delaying this further. There can always be followup improvements.
4f6d0b7
to
28deccf
Compare
28deccf
to
ba3ad48
Compare
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.
@JayDi85 please either provide actionable feedback for why one more processAction
will destroy XMage as we know it or allow this to be updated to address conflicts and merged.
Fix [[Rain of Riches]] using Predicate logic.
We need to ensure continuous effects are recomputed between the Mana Payment from
spell.activate
andSPELL_CAST
event for this card to work properly. Hence the addedgame.getState().processAction(game);
(if you remove it, 2 of the added tests fail)Fix #12125
Fix #10347
Fix #9669