Merge branch 'vazal' into 'master'

Vazal the Compleat

See merge request core-developers/forge!3882
This commit is contained in:
Michael Kamensky
2021-02-18 05:14:49 +00:00
4 changed files with 15 additions and 3 deletions

View File

@@ -375,9 +375,10 @@ public enum DeckFormat {
public static Integer canHaveSpecificNumberInDeck(final IPaperCard card) {
// Ideally, this would be parsed during card parsing and set this value
if (Iterables.contains(card.getRules().getMainPart().getKeywords(),
"A deck can have up to seven cards named CARDNAME.")) {
if (card.getRules().hasKeyword("A deck can have up to seven cards named CARDNAME.")) {
return 7;
} else if (card.getRules().hasKeyword("Megalegendary")) {
return 1;
}
return null;

View File

@@ -1964,7 +1964,8 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|| keyword.equals("Foretell") // for the ones without cost
|| keyword.equals("Hideaway") || keyword.equals("Ascend")
|| keyword.equals("Totem armor") || keyword.equals("Battle cry")
|| keyword.equals("Devoid") || keyword.equals("Riot")){
|| keyword.equals("Devoid") || keyword.equals("Riot")
|| keyword.equals("Megalegendary")){
sbLong.append(keyword).append(" (").append(inst.getReminderText()).append(")");
} else if (keyword.startsWith("Partner:")) {
final String[] k = keyword.split(":");

View File

@@ -92,6 +92,7 @@ public enum Keyword {
LIFELINK("Lifelink", SimpleKeyword.class, true, "Damage dealt by this creature also causes its controller to gain that much life."),
LIVING_WEAPON("Living weapon", SimpleKeyword.class, true, "When this Equipment enters the battlefield, create a 0/0 black Germ creature token, then attach this to it."),
MADNESS("Madness", KeywordWithCost.class, false, "If you discard this card, discard it into exile. When you do, cast it for %s or put it into your graveyard."),
MEGALEGENDARY("Megalegendary", SimpleKeyword.class, true, "Your deck can have only one copy of this card."),
MELEE("Melee", SimpleKeyword.class, false, "Whenever this creature attacks, it gets +1/+1 until end of turn for each opponent you attacked this combat."),
MENTOR("Mentor", SimpleKeyword.class, false, "Whenever this creature attacks, put a +1/+1 counter on target attacking creature with lesser power."),
MENACE("Menace", SimpleKeyword.class, true, "This creature can't be blocked except by two or more creatures."),

View File

@@ -0,0 +1,9 @@
Name:Vazal, the Compleat
ManaCost:3 G G G
Types:Legendary Artifact Creature Phyrexian
PT:7/7
K:Megalegendary
K:Vigilance
K:Trample
S:Mode$ Continuous | Affected$ Card.Self | EffectZone$ Battlefield | GainsAbilitiesOf$ Permanent.Other | Description$ CARDNAME has all activated abilities of each other permanent on the battlefield.
Oracle:Vigilance, Trample\nVazal, the Compleat has all activated abilities of each other permanent on the battlefield.