mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- DGM: Notion Thief
This commit is contained in:
@@ -21,6 +21,8 @@ import java.util.Map;
|
||||
|
||||
import forge.Card;
|
||||
import forge.card.spellability.SpellAbility;
|
||||
import forge.game.phase.PhaseType;
|
||||
import forge.game.player.Player;
|
||||
|
||||
/**
|
||||
* TODO: Write javadoc for this type.
|
||||
@@ -51,6 +53,14 @@ public class ReplaceDraw extends ReplacementEffect {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (this.getMapParams().containsKey("NotFirstCardInDrawStep")) {
|
||||
final Player p = (Player)runParams.get("Affected");
|
||||
if (p.numDrawnThisDrawStep() == 0
|
||||
&& this.getHostCard().getController().getGame().getPhaseHandler().is(PhaseType.DRAW)
|
||||
&& this.getHostCard().getController().getGame().getPhaseHandler().getPlayerTurn().equals(p)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1565,6 +1565,17 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
||||
return this.numDrawnThisTurn;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Getter for the field <code>numDrawnThisTurnDrawStep</code>.
|
||||
* </p>
|
||||
*
|
||||
* @return a int.
|
||||
*/
|
||||
public final int numDrawnThisDrawStep() {
|
||||
return this.numDrawnThisDrawStep;
|
||||
}
|
||||
|
||||
// //////////////////////////////
|
||||
// /
|
||||
// / replaces Singletons.getModel().getGameAction().discard* methods
|
||||
|
||||
Reference in New Issue
Block a user