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

Improve DealsCombatDamageEquippedTriggeredAbility #10767

Merged
merged 5 commits into from
Aug 7, 2023

Conversation

xenohedron
Copy link
Contributor

Fix #10763 and adds test. This still isn't perfect as events that care about the saved damage value won't get the full damage in case of trampling over, but only one card seems like it would be affected.

@ssk97 sorry for duplicate effort- anything I should adjust with this?

@ssk97
Copy link
Contributor

ssk97 commented Aug 7, 2023

You don't need the "amount < 1" check since that was due to the summing operation returning 0 if the filters weren't met.

Aside from that yours looks good.

@xenohedron
Copy link
Contributor Author

I'm pretty sure that check is still important; I didn't change the code that filters and sums.

@ssk97
Copy link
Contributor

ssk97 commented Aug 7, 2023

Right, misread that/was still thinking of mine where I didn't use the batch events. Should the other ability also be using batch events? I guess right now there aren't any cards using the "amount" output from either of these triggers aside from the Sword but the TODO should apply to the original ability as well, right?

@xenohedron xenohedron merged commit 35a5cc4 into magefree:master Aug 7, 2023
1 check passed
@xenohedron xenohedron deleted the fix-dmg-trigger branch August 7, 2023 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More Umezawa's Jitte bugs
2 participants