Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public enum AbilityKey {
Exploited("Exploited"),
Explored("Explored"),
Explorer("Explorer"),
ExtraDraws("ExtraDraws"),
ExtraTurn("ExtraTurn"),
ETB("ETB"),
Fighter("Fighter"),
Expand Down
9 changes: 9 additions & 0 deletions forge-game/src/main/java/forge/game/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public class Player extends GameEntity implements Comparable<Player> {
private boolean unlimitedHandSize = false;
private Card lastDrawnCard;
private int numDrawnThisTurn;
private int numExtraDrawsThisTurn;
private int numDrawnLastTurn;
private int numDrawnThisDrawStep;
private int numCardsInHandStartedThisTurnWith;
Expand Down Expand Up @@ -1248,6 +1249,12 @@ private CardCollectionView doDraw(Map<Player, CardCollection> revealed, SpellAbi
runParams.putAll(params);
}

if (sa == null) {
// if this draw is not caused by a SA, it must be the normal draw at the beginning of the turn, so update the flag for that
numExtraDrawsThisTurn++;
runParams.put(AbilityKey.ExtraDraws, numExtraDrawsThisTurn);
Comment thread
tool4ever marked this conversation as resolved.
Outdated
}

// CR 121.8 card was drawn as part of another sa (e.g. paying with Chromantic Sphere), hide it temporarily
if (game.getTopLibForPlayer(this) != null && getPaidForSA() != null && cause != null && getPaidForSA() != cause.getRootAbility()) {
c.turnFaceDown();
Expand All @@ -1273,6 +1280,7 @@ public final void resetNumDrawnThisDrawStep() {

public final void resetNumDrawnThisTurn() {
numDrawnThisTurn = 0;
numExtraDrawsThisTurn = 0;
view.updateNumDrawnThisTurn(this);
}

Expand All @@ -1285,6 +1293,7 @@ public final int getNumDrawnLastTurn() {
public final int numDrawnThisDrawStep() {
return numDrawnThisDrawStep;
}
public final int getNumExtraDrawsThisTurn() { return numExtraDrawsThisTurn; }

/**
* Returns PlayerZone corresponding to the given zone of game.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ public boolean canReplace(Map<AbilityKey, Object> runParams) {
}
}

if (hasParam("FirstExtraCardDrawnThisTurn")) {
if ((int)runParams.getOrDefault(AbilityKey.ExtraDraws, 0) != 1) {
return false;
}
}

return true;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Name:Reed Richards, Smartest Man
ManaCost:5 U
Types:Legendary Creature Human Scientist Hero
PT:2/4
K:Reach
S:Mode$ Continuous | Affected$ You | SetMaxHandSize$ Unlimited | Description$ You have no maximum hand size.
R:Event$ Draw | ActiveZones$ Battlefield | ValidPlayer$ You | FirstExtraCardDrawnThisTurn$ True | ReplaceWith$ DrawFour | Description$ The first time you would draw a card each turn except the first card you draw during each of your draw steps, you draw four cards instead.
SVar:DrawFour:DB$ Draw | Defined$ You | NumCards$ 4
Oracle:Reach\nYou have no maximum hand size.\nThe first time you would draw a card each turn except the first card you draw during each of your draw steps, you draw four cards instead.
Loading