CLB: Volo, Journal, support, etc. (#1211)

* volo_itinerant_scholar.txt

* volos_journal.txt

* TrackableProperty.NotedTypes

* ChooseTypeEffect.resolve implement "TypesFromDefined"

* ChooseTypeEffect.resolve implement "Note"

* CardView.getNotedTypes / CardView.updateNotedTypes

* CardDetailUtil.composeCardText add noted type area

* Card.java implement notedTypes

* AbilityUtils.xCount "CardNumNotedTypes"
This commit is contained in:
Northmoc
2022-08-04 11:49:09 -04:00
committed by GitHub
parent 7870b27734
commit fff9968b5b
8 changed files with 89 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
Name:Volo, Itinerant Scholar
ManaCost:2 U
Types:Legendary Creature Human Wizard
PT:2/3
T:Mode$ ChangesZone | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigToken | TriggerDescription$ When NICKNAME enters the battlefield, create Volo's Journal, a legendary colorless artifact token with hexproof and "Whenever you cast a creature spell, note one of its creature types that hasn't been noted for this artifact."
SVar:TrigToken:DB$ Token | TokenScript$ volos_journal
A:AB$ Pump | Cost$ 2 T | ValidTgts$ Permanent.namedVolo's Journal+YouCtrl | TgtPrompt$ Select target permanent you control named Volo's Journal | SubAbility$ DBDraw | StackDescription$ None | SpellDescription$ Draw a card for each creature type noted for target permanent you control named Volo's Journal.
SVar:DBDraw:DB$ Draw | NumCards$ X
SVar:X:Targeted$CardNumNotedTypes
K:Choose a Background
DeckHas:Ability$Token & Type$Artifact
Oracle:When Volo enters the battlefield, create Volo's Journal, a legendary colorless artifact token with hexproof and "Whenever you cast a creature spell, note one of its creature types that hasn't been noted for this artifact."\n{2}, {T}: Draw a card for each creature type noted for target permanent you control named Volo's Journal.\nChoose a Background

View File

@@ -0,0 +1,7 @@
Name:Volo's Journal
ManaCost:no cost
Types:Legendary Artifact
K:Hexproof
T:Mode$ SpellCast | ValidCard$ Creature | ValidActivatingPlayer$ You | Execute$ TrigNoteType | TriggerZones$ Battlefield | TriggerDescription$ Whenever you cast a creature spell, note one of its creature types that hasn't been noted for this artifact.
SVar:TrigNoteType:DB$ ChooseType | Type$ Creature | TypesFromDefined$ TriggeredCard | Note$ True
Oracle:Hexproof\nWhenever you cast a creature spell, note one of its creature types that hasn't been noted for this artifact.

View File

@@ -419,6 +419,16 @@ public class CardDetailUtil {
area.append(")");
}
// noted types
if (card.getNotedTypes() != null && !card.getNotedTypes().isEmpty()) {
if (area.length() != 0) {
area.append("\n");
}
area.append("(noted type").append(card.getNotedTypes().size() == 1 ? ": " : "s: ");
area.append(Lang.joinHomogenous(card.getNotedTypes()));
area.append(")");
}
// chosen color
if (card.getChosenColors() != null && !card.getChosenColors().isEmpty()) {
if (area.length() != 0) {