Merge branch 'jared' into 'master'

CMR: Jared, True Hair Metal Band and support for "you can't become monarch"

See merge request core-developers/forge!3376
This commit is contained in:
Michael Kamensky
2020-11-11 04:07:49 +00:00
2 changed files with 15 additions and 1 deletions

View File

@@ -30,7 +30,9 @@ public class BecomeMonarchEffect extends SpellAbilityEffect {
for (final Player p : getTargetPlayers(sa)) {
if ((tgt == null) || p.canBeTargetedBy(sa)) {
p.getGame().getAction().becomeMonarch(p);
if (!p.hasKeyword("You cant become the monarch this turn.")) {
p.getGame().getAction().becomeMonarch(p);
}
}
}
}

View File

@@ -0,0 +1,12 @@
Name:Jared Carthalion, True Heir
ManaCost:R G W
Types:Legendary Creature Human Warrior
PT:3/3
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigMonarch | TriggerDescription$ When CARDNAME enters the battlefield, target opponent becomes the monarch. You cant become the monarch this turn.
SVar:TrigMonarch:DB$ BecomeMonarch | ValidTgts$ Opponent | SubAbility$ DBPump
SVar:DBPump:DB$ Pump | Defined$ You | KW$ You cant become the monarch this turn.
R:Event$ DamageDone | ActiveZones$ Battlefield | ValidTarget$ Card.Self | CheckDefinedPlayer$ You.isMonarch | ReplaceWith$ Counters | PreventionEffect$ True | Description$ If damage would be dealt to NICKNAME while youre the monarch, prevent that damage and put that many +1/+1 counters on it.
SVar:Counters:DB$ PutCounter | Defined$ ReplacedTarget | CounterType$ P1P1 | CounterNum$ Y | References$ Y
SVar:Y:ReplaceCount$DamageAmount
DeckHas:Ability$Counters
Oracle:When Jared Carthalion, True Heir enters the battlefield, target opponent becomes the monarch. You cant become the monarch this turn.\nIf damage would be dealt to Jared Carthalion while youre the monarch, prevent that damage and put that many +1/+1 counters on it.