mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Merge branch 'master' into 'master'
CMR: Court of Cunning + support See merge request core-developers/forge!3306
This commit is contained in:
@@ -1156,6 +1156,9 @@ public class CardFactoryUtil {
|
||||
if (sq[0].contains("Landfall")) {
|
||||
return doXMath(Integer.parseInt(sq[cc.hasLandfall() ? 1 : 2]), m, c);
|
||||
}
|
||||
if (sq[0].contains("Monarch")) {
|
||||
return doXMath(Integer.parseInt(sq[cc.equals(game.getMonarch()) ? 1 : 2]), m, c);
|
||||
}
|
||||
if (sq[0].contains("Blessing")) {
|
||||
return doXMath(Integer.parseInt(sq[cc.hasBlessing() ? 1 : 2]), m, c);
|
||||
}
|
||||
|
||||
10
forge-gui/res/cardsfolder/upcoming/CMR/court_of_cunning.txt
Normal file
10
forge-gui/res/cardsfolder/upcoming/CMR/court_of_cunning.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
Name:Court of Cunning
|
||||
ManaCost:1 U U
|
||||
Types:Enchantment
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigMonarch | TriggerDescription$ When CARDNAME enters the battlefield, you become the monarch.
|
||||
SVar:TrigMonarch:DB$ BecomeMonarch | Defined$ You
|
||||
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigMill | TriggerDescription$ At the beginning of your upkeep, any number of target players each mill two cards. If you're the monarch, each of those players mills ten cards instead. (To mill a card, a player puts the top card of their library into their graveyard.)
|
||||
SVar:TrigMill:DB$ Mill | ValidTgts$ Player | TgtPrompt$ Select target player | TargetMin$ 0 | TargetMax$ MaxTgt | NumCards$ X | References$ X,MaxTgt
|
||||
SVar:X:Count$Monarch.10.2
|
||||
SVar:MaxTgt:PlayerCountPlayers$Amount
|
||||
Oracle:When Court of Cunning enters the battlefield, you become the monarch.\nAt the beginning of your upkeep, any number of target players each mill two cards. If you're the monarch, each of those players mills ten cards instead. (To mill a card, a player puts the top card of their library into their graveyard.)
|
||||
Reference in New Issue
Block a user