mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Added Power Play (via manual editing of draft deck)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -10526,6 +10526,7 @@ forge-gui/res/cardsfolder/p/power_artifact.txt svneol=native#text/plain
|
|||||||
forge-gui/res/cardsfolder/p/power_conduit.txt -text
|
forge-gui/res/cardsfolder/p/power_conduit.txt -text
|
||||||
forge-gui/res/cardsfolder/p/power_matrix.txt svneol=native#text/plain
|
forge-gui/res/cardsfolder/p/power_matrix.txt svneol=native#text/plain
|
||||||
forge-gui/res/cardsfolder/p/power_of_fire.txt svneol=native#text/plain
|
forge-gui/res/cardsfolder/p/power_of_fire.txt svneol=native#text/plain
|
||||||
|
forge-gui/res/cardsfolder/p/power_play.txt -text
|
||||||
forge-gui/res/cardsfolder/p/power_sink.txt svneol=native#text/plain
|
forge-gui/res/cardsfolder/p/power_sink.txt svneol=native#text/plain
|
||||||
forge-gui/res/cardsfolder/p/power_surge.txt svneol=native#text/plain
|
forge-gui/res/cardsfolder/p/power_surge.txt svneol=native#text/plain
|
||||||
forge-gui/res/cardsfolder/p/power_taint.txt -text
|
forge-gui/res/cardsfolder/p/power_taint.txt -text
|
||||||
|
|||||||
@@ -1395,6 +1395,20 @@ public class GameAction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Power Play - Each player with a Power Play in the CommandZone becomes the Starting Player
|
||||||
|
CardCollectionView commandCards = game.getCardsIn(ZoneType.Command);
|
||||||
|
if (commandCards.size() > 0) {
|
||||||
|
CardCollection powerPlays = CardLists.getValidCards(commandCards, "Card.namedPower Play", game.getPlayers().getFirst(), commandCards.getFirst());
|
||||||
|
Set<Player> powerPlayers = new HashSet<>();
|
||||||
|
for (Card c : powerPlays) {
|
||||||
|
powerPlayers.add(c.getOwner());
|
||||||
|
}
|
||||||
|
|
||||||
|
ArrayList<Player> players = Lists.newArrayList(powerPlayers);
|
||||||
|
Collections.shuffle(players);
|
||||||
|
return players.get(0);
|
||||||
|
}
|
||||||
|
|
||||||
boolean isFirstGame = lastGameOutcome == null;
|
boolean isFirstGame = lastGameOutcome == null;
|
||||||
if (isFirstGame) {
|
if (isFirstGame) {
|
||||||
game.fireEvent(new GameEventFlipCoin()); // Play the Flip Coin sound
|
game.fireEvent(new GameEventFlipCoin()); // Play the Flip Coin sound
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ Fatespinner
|
|||||||
Incite Rebellion
|
Incite Rebellion
|
||||||
Infernal Offering
|
Infernal Offering
|
||||||
Loreseeker's Stone
|
Loreseeker's Stone
|
||||||
|
Power Play
|
||||||
Shared Fate
|
Shared Fate
|
||||||
Smoke Teller
|
Smoke Teller
|
||||||
Spy Network
|
Spy Network
|
||||||
|
|||||||
5
forge-gui/res/cardsfolder/p/power_play.txt
Normal file
5
forge-gui/res/cardsfolder/p/power_play.txt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Name:Power Play
|
||||||
|
ManaCost:no cost
|
||||||
|
Types:Conspiracy
|
||||||
|
Text:You are the starting player. If multiple players would be the starting player, one of those players is chosen at random.
|
||||||
|
Oracle:(Start the game with this conspiracy face up in the command zone.)\nYou are the starting player. If multiple players would be the starting player, one of those players is chosen at random.
|
||||||
Reference in New Issue
Block a user