- DOM: added "Historic" and Jhoira, Weatherlight Captain

This commit is contained in:
swordshine
2018-03-10 15:04:31 +08:00
parent 211d6c793a
commit 2f57a39fcc
5 changed files with 16 additions and 1 deletions

View File

@@ -3661,6 +3661,7 @@ public class Card extends GameEntity implements Comparable<Card> {
public final boolean isPlaneswalker() { return getType().isPlaneswalker(); } public final boolean isPlaneswalker() { return getType().isPlaneswalker(); }
public final boolean isEnchantment() { return getType().isEnchantment(); } public final boolean isEnchantment() { return getType().isEnchantment(); }
public final boolean isAura() { return getType().hasSubtype("Aura"); } public final boolean isAura() { return getType().hasSubtype("Aura"); }
public final boolean isHistoric() {return getType().isLegendary() || getType().isArtifact() || getType().hasSubtype("Saga");}
public final boolean isScheme() { return getType().isScheme(); } public final boolean isScheme() { return getType().isScheme(); }
public final boolean isPhenomenon() { return getType().isPhenomenon(); } public final boolean isPhenomenon() { return getType().isPhenomenon(); }

View File

@@ -74,6 +74,10 @@ public class CardProperty {
if (card.isInstant() || card.isSorcery()) { if (card.isInstant() || card.isSorcery()) {
return false; return false;
} }
} else if (property.equals("Historic")) {
if (!card.isHistoric()) {
return false;
}
} else if (property.startsWith("CardUID_")) {// Protection with "doesn't remove effect" } else if (property.startsWith("CardUID_")) {// Protection with "doesn't remove effect"
if (card.getId() != Integer.parseInt(property.split("CardUID_")[1])) { if (card.getId() != Integer.parseInt(property.split("CardUID_")[1])) {
return false; return false;

View File

@@ -1,7 +1,7 @@
Name:Exotic Disease Name:Exotic Disease
ManaCost:4 B ManaCost:4 B
Types:Sorcery Types:Sorcery
A:SP$ LoseLife | Cost$ 4 B | ValidTgts$ Player | TgtPrompt$ Select a player | LifeAmount$ X | SubAbility$ DBGainLife | SpellDescription$ Domain — Target player loses X life and you gain X life, where X is the number of basic land types among lands you control. A:SP$ LoseLife | Cost$ 4 B | ValidTgts$ Player | TgtPrompt$ Select a player | LifeAmount$ X | References$ X | SubAbility$ DBGainLife | SpellDescription$ Domain — Target player loses X life and you gain X life, where X is the number of basic land types among lands you control.
SVar:DBGainLife:DB$GainLife | Defined$ You | LifeAmount$ X | References$ X SVar:DBGainLife:DB$GainLife | Defined$ You | LifeAmount$ X | References$ X
SVar:X:Count$Domain SVar:X:Count$Domain
SVar:RemRandomDeck:True SVar:RemRandomDeck:True

View File

@@ -0,0 +1,8 @@
Name:Jhoira, Weatherlight Captain
ManaCost:2 U R
Types:Legendary Creature Human Artificer
PT:3/3
T:Mode$ SpellCast | ValidCard$ Card.Historic | ValidActivatingPlayer$ You | Execute$ TrigDraw | TriggerZones$ Battlefield | TriggerDescription$ Whenever you cast a historic spell, draw a card. (Artifacts, legendaries, and Sagas are historic.)
SVar:TrigDraw:DB$ Draw | Defined$ You | NumCards$ 1
SVar:Picture:http://www.wizards.com/global/images/magic/general/jhoira_weatherlight_captain.jpg
Oracle:Whenever you cast a historic spell, draw a card. (Artifacts, legendaries, and Sagas are historic.)

View File

@@ -259,6 +259,7 @@ Trap
Aura Aura
Cartouche Cartouche
Curse Curse
Saga
Shrine Shrine
[ArtifactTypes] [ArtifactTypes]
Clue Clue
@@ -284,6 +285,7 @@ Garruk
Gideon Gideon
Huatli Huatli
Jace Jace
Jaya
Karn Karn
Kaya Kaya
Kiora Kiora