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
Global DamageHistory #622
Global DamageHistory #622
Conversation
Check out the thing with Gnoll War Band https://www.youtube.com/watch?v=hvha1anEVag some cards check if players where dealt damage this turn (even if they left the game) so a global history alone might not be the right thing? |
Yea that's not too difficult to do now Gonna add it |
I realized some corner cases need LKI of target too: Creature A equipped with Thirsting Axe deals combat damage to B, but if B then gets turned into non-creature before EOT, the trigger would still sacrifice A |
Exciting! Will this help with Zangief? |
Hmn, not that much I'm afraid. It still has the problem of the trigger condition timing with combat damage afair. |
Yes, I still have it on my local drive. I don't think it's on my GitHub fork. |
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.
Looks good to me! Thanks for the big refactor!
…into damagehistory
🥳 |
Small diagram to show the new structure:
a single call in
GameAction.dealDamage
creates all the databecause we keep a DamageHistory Collection in Game they're already grouped by source so no need to manually merge with timestamps