You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because [[Teferi's Ageless Insight]] replaces the draw event with two card draws, Player::drawCards doesn't return the number of cards drawn. A note on this method explicitly states this:
Casting [[Ancient Excavation]] with three other cards in hand and a TAI in play causes the player to draw 6 cards. They should then discard 6 cards, as per Ancient Excavation's wording ("discard a card for each card drawn this way"); I have confirmed this with a judge. Currently in XMage, the player discards 0 cards, as the drawCards call is returning 0 due to TAI replacing each of the three draw events.
All of these cards should be affected by this problem.
The text was updated successfully, but these errors were encountered:
{2}{U}{B}
Instant
Draw cards equal to the number of cards in your hand, then discard a card for each card drawn this way.
Basic landcycling {2} ({2}, Discard this card: Search your library for a basic land card, reveal it, put it into your hand, then shuffle.)
Question - for the "each card drawn this way", what if a replacement effect causes an opponent to draw instead of you? would those count as cards drawn "this way" ?
I'm pondering this and I think I have a way to refactor that passes through the amount on replacement back to the original method call... it'll be kinda convoluted[edit: actually it isn't!], but it needs to be as the simpler solutions I thought of are flawed.
(I thought I could fix this by storing the amount of cards to draw in the event checked by replacement effects, so that the event didn't need to be fully replaced to change the amount. But in order for this to work, the replacement effect has to be checked on the drawing of multiple cards, not the drawing of individual cards. Unfortunately, it can't work for all replacement effects to check that, because if you have multiple replacement effects, you need to be able to order them separately for each card drawn, so they need to check the drawing of individual cards.)
Because [[Teferi's Ageless Insight]] replaces the draw event with two card draws,
Player::drawCards
doesn't return the number of cards drawn. A note on this method explicitly states this:mage/Mage/src/main/java/mage/players/Player.java
Lines 409 to 430 in 3ec3b77
Casting [[Ancient Excavation]] with three other cards in hand and a TAI in play causes the player to draw 6 cards. They should then discard 6 cards, as per Ancient Excavation's wording ("discard a card for each card drawn this way"); I have confirmed this with a judge. Currently in XMage, the player discards 0 cards, as the
drawCards
call is returning 0 due to TAI replacing each of the three draw events.All of these cards should be affected by this problem.
The text was updated successfully, but these errors were encountered: