Merge branch 'master' into 'master'

CMR: Court of Cunning + support

See merge request core-developers/forge!3306
This commit is contained in:
swordshine
2020-10-29 11:13:41 +00:00
2 changed files with 13 additions and 0 deletions

View File

@@ -1156,6 +1156,9 @@ public class CardFactoryUtil {
if (sq[0].contains("Landfall")) { if (sq[0].contains("Landfall")) {
return doXMath(Integer.parseInt(sq[cc.hasLandfall() ? 1 : 2]), m, c); 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")) { if (sq[0].contains("Blessing")) {
return doXMath(Integer.parseInt(sq[cc.hasBlessing() ? 1 : 2]), m, c); return doXMath(Integer.parseInt(sq[cc.hasBlessing() ? 1 : 2]), m, c);
} }

View 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.)