mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Expanded the Whenever Keyword to allow it to trigger when a player gains life and added an object array to the Whenever keyword to store some data. Added Ageless Entity, Ajani Pridemate and Angelic Chorus
This commit is contained in:
@@ -28,6 +28,9 @@ public class CardFactory implements NewConstants {
|
||||
|
||||
private HashSet<String> removedCardList;
|
||||
private Card blankCard = new Card(); //new code
|
||||
// The Following "Cards" are used by the Whenever Keyword
|
||||
public Card HumanNullCard = new Card();
|
||||
public Card ComputerNullCard = new Card();
|
||||
|
||||
public CardFactory(String filename) {
|
||||
this(new File(filename));
|
||||
@@ -54,6 +57,11 @@ public class CardFactory implements NewConstants {
|
||||
blankCard.setOwner(Constant.Player.Human);
|
||||
blankCard.setController(Constant.Player.Human);
|
||||
|
||||
HumanNullCard.setOwner(Constant.Player.Human);
|
||||
HumanNullCard.setController(Constant.Player.Human);
|
||||
ComputerNullCard.setOwner(Constant.Player.Computer);
|
||||
ComputerNullCard.setController(Constant.Player.Computer);
|
||||
|
||||
removedCardList = new HashSet<String>(FileUtil.readFile(ForgeProps.getFile(REMOVED)));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user