magefree / mage

Magic Another Game Engine
http://xmage.today
MIT License
1.89k stars 772 forks source link

[[Hellkite Whelp]] didn't do damage when [[Condemn]]ed in response to the trigger #12648

Open tiera3 opened 2 months ago

tiera3 commented 2 months ago

[[Hellkite Whelp]] didn't do damage when [[Condemn]]ed in response to the trigger posted by Nibiru https://discord.com/channels/528728694680715324/1068992506072674516/1271597209837764681

github-actions[bot] commented 2 months ago

Hellkite Whelp - (Gatherer) (Scryfall) (EDHREC)

{4}{R} Creature — Dragon 3/3 Flying Whenever Hellkite Whelp attacks, it deals 1 damage to target creature defending player controls.

Condemn - (Gatherer) (Scryfall) (EDHREC)

{W} Instant Put target attacking creature on the bottom of its owner's library. Its controller gains life equal to its toughness.

xenohedron commented 2 months ago

Guessing this is the culprit (needs to check LKI somehow - but I don't see an easy/obvious way to fix it):

https://github.com/magefree/mage/blob/f366f3097efb01c91ae0026978b4d554184734ff/Mage/src/main/java/mage/filter/predicate/permanent/DefendingPlayerControlsSourceAttackingPredicate.java#L19-L22