From d671eed1bdd1b8cf77c43d0893a65713db520adf Mon Sep 17 00:00:00 2001 From: Hythonia Date: Fri, 5 Mar 2021 18:20:34 +0100 Subject: [PATCH] CMB1: Lantern of Undersight --- forge-game/src/main/java/forge/game/player/Player.java | 8 +++++++- forge-gui/res/cardsfolder/l/lantern_of_undersight.txt | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 forge-gui/res/cardsfolder/l/lantern_of_undersight.txt diff --git a/forge-game/src/main/java/forge/game/player/Player.java b/forge-game/src/main/java/forge/game/player/Player.java index 7e9d2587458..f2edcbbf666 100644 --- a/forge-game/src/main/java/forge/game/player/Player.java +++ b/forge-game/src/main/java/forge/game/player/Player.java @@ -1430,7 +1430,13 @@ public class Player extends GameEntity implements Comparable { } if (!library.isEmpty()) { - Card c = library.get(0); + Card c; + + if (hasKeyword("You draw cards from the bottom of your library instead of the top of your library.")) { + c = library.get(library.size() - 1); + } else { + c = library.get(0); + } List pList = Lists.newArrayList(); diff --git a/forge-gui/res/cardsfolder/l/lantern_of_undersight.txt b/forge-gui/res/cardsfolder/l/lantern_of_undersight.txt new file mode 100644 index 00000000000..af891c4e2cc --- /dev/null +++ b/forge-gui/res/cardsfolder/l/lantern_of_undersight.txt @@ -0,0 +1,5 @@ +Name:Lantern of Undersight +ManaCost:1 +Types:Artifact +S:Mode$ Continuous | Affected$ You | AddKeyword$ You draw cards from the bottom of your library instead of the top of your library. | Description$ You draw cards from the bottom of your library instead of the top of your library. +Oracle:You draw cards from the bottom of your library instead of the top of your library. \ No newline at end of file