mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Clean up
This commit is contained in:
@@ -17,7 +17,6 @@ import forge.game.combat.AttackRequirement;
|
||||
import forge.game.combat.AttackingBand;
|
||||
import forge.game.combat.Combat;
|
||||
import forge.game.combat.CombatUtil;
|
||||
import forge.game.keyword.Keyword;
|
||||
import forge.game.mana.Mana;
|
||||
import forge.game.player.Player;
|
||||
import forge.game.spellability.OptionalCost;
|
||||
@@ -1020,11 +1019,6 @@ public class CardProperty {
|
||||
if (!card.hasKeyword(property.substring(10))) {
|
||||
return false;
|
||||
}
|
||||
} else if (property.startsWith("withFlashback")) {
|
||||
boolean fb = card.hasKeyword(Keyword.FLASHBACK);
|
||||
if (!fb) {
|
||||
return false;
|
||||
}
|
||||
} else if (property.startsWith("with")) {
|
||||
// ... Card keywords
|
||||
if (property.startsWith("without") && card.hasStartOfUnHiddenKeyword(property.substring(7))) {
|
||||
|
||||
@@ -70,7 +70,6 @@ public enum CSubmenuReleaseNotes implements ICDoc {
|
||||
* Returns content of README.txt (release) or CHANGES.txt (snapshot).
|
||||
*/
|
||||
private static String getReleaseNotes() {
|
||||
|
||||
final String filename = ForgeConstants.CHANGES_FILE_NO_RELEASE;
|
||||
final String filePath = FileUtil.pathCombine(System.getProperty("user.dir"), filename);
|
||||
|
||||
@@ -87,7 +86,6 @@ public enum CSubmenuReleaseNotes implements ICDoc {
|
||||
} else {
|
||||
notes = filePath + "\nis MISSING!";
|
||||
}
|
||||
|
||||
return notes;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@ Name:Altar of the Lost
|
||||
ManaCost:3
|
||||
Types:Artifact
|
||||
K:CARDNAME enters the battlefield tapped.
|
||||
A:AB$ Mana | Cost$ T | Produced$ Combo Any | Amount$ 2 | RestrictValid$ Spell.wasCastFromGraveyard+withFlashback | SpellDescription$ Add two mana in any combination of colors. Spend this mana only to cast spells with flashback from a graveyard.
|
||||
A:AB$ Mana | Cost$ T | Produced$ Combo Any | Amount$ 2 | RestrictValid$ Spell.wasCastFromGraveyard+hasKeywordFlashback | SpellDescription$ Add two mana in any combination of colors. Spend this mana only to cast spells with flashback from a graveyard.
|
||||
AI:RemoveDeck:Random
|
||||
Oracle:Altar of the Lost enters the battlefield tapped.\n{T}: Add two mana in any combination of colors. Spend this mana only to cast spells with flashback from a graveyard.
|
||||
|
||||
@@ -2,8 +2,6 @@ Name:Monstrous Onslaught
|
||||
ManaCost:3 G G
|
||||
Types:Sorcery
|
||||
A:SP$ DealDamage | Cost$ 3 G G | ValidTgts$ Creature | TgtPrompt$ Select target creature to distribute damage to | NumDmg$ OrigPower | TargetMin$ Min | TargetMax$ OrigPower | DividedAsYouChoose$ OrigPower | SpellDescription$ CARDNAME deals X damage divided as you choose among any number of target creatures, where X is the greatest power among creatures you control as you cast this spell.
|
||||
T:Mode$ SpellCast | ValidCard$ Card.Self | Static$ True | Execute$ CountPowerAtCast
|
||||
SVar:CountPowerAtCast:DB$ StoreSVar | SVar$ OrigPower | Type$ Calculate | Expression$ OrigPower
|
||||
SVar:OrigPower:Count$Valid Creature.YouCtrl$GreatestPower
|
||||
SVar:Min:SVar$OrigPower/LimitMax.1
|
||||
Oracle:Monstrous Onslaught deals X damage divided as you choose among any number of target creatures, where X is the greatest power among creatures you control as you cast this spell.
|
||||
|
||||
@@ -4,5 +4,5 @@ Types:Creature Spirit
|
||||
PT:4/4
|
||||
K:Flying
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ PhantomSearch | TriggerDescription$ When CARDNAME enters the battlefield, you may search your library for a card with flashback or disturb, put it into your graveyard, then shuffle.
|
||||
SVar:PhantomSearch:DB$ ChangeZone | Origin$ Library | Destination$ Graveyard | ChangeNum$ 1 | ChangeType$ Card.withFlashback+YouOwn,Card.withDisturb+YouOwn
|
||||
SVar:PhantomSearch:DB$ ChangeZone | Origin$ Library | Destination$ Graveyard | ChangeNum$ 1 | ChangeType$ Card.hasKeywordFlashback+YouOwn,Card.withDisturb+YouOwn
|
||||
Oracle:Flying\nWhen Phantom Carriage enters the battlefield, you may search your library for a card with flashback or disturb, put it into your graveyard, then shuffle.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Name:Quiet Speculation
|
||||
ManaCost:1 U
|
||||
Types:Sorcery
|
||||
A:SP$ ChangeZone | Cost$ 1 U | Origin$ Library | Destination$ Graveyard | ValidTgts$ Player | ChangeType$ Card.withFlashback | ChangeNum$ 3 | SpellDescription$ Search target player's library for up to three cards with flashback and put them into that player's graveyard. Then the player shuffles.
|
||||
A:SP$ ChangeZone | Cost$ 1 U | Origin$ Library | Destination$ Graveyard | ValidTgts$ Player | ChangeType$ Card.hasKeywordFlashback | ChangeNum$ 3 | SpellDescription$ Search target player's library for up to three cards with flashback and put them into that player's graveyard. Then the player shuffles.
|
||||
AI:RemoveDeck:All
|
||||
Oracle:Search target player's library for up to three cards with flashback and put them into that player's graveyard. Then the player shuffles.
|
||||
|
||||
@@ -4,6 +4,6 @@ Types:Creature Plant Horror
|
||||
PT:2/2
|
||||
A:AB$ Mana | Cost$ T | Produced$ Any | SpellDescription$ Add one mana of any color.
|
||||
A:AB$ Mana | Cost$ T | Produced$ Any | Amount$ 2 | RestrictValid$ Spell.wasCastFromYourGraveyard | SpellDescription$ Add two mana of any one color. Spend this mana only to cast spells from your graveyard.
|
||||
A:AB$ ChangeZone | Cost$ G U T Exile<1/CARDNAME> | Origin$ Exile | Destination$ Hand | ValidTgts$ Card.withFlashback+YouOwn | TgtPrompt$ Select target card with flashback you own in exile | SpellDescription$ Return target card with flashback you own in exile to your hand.
|
||||
A:AB$ ChangeZone | Cost$ G U T Exile<1/CARDNAME> | Origin$ Exile | Destination$ Hand | ValidTgts$ Card.hasKeywordFlashback+YouOwn | TgtPrompt$ Select target card with flashback you own in exile | SpellDescription$ Return target card with flashback you own in exile to your hand.
|
||||
DeckHints:Ability$Graveyard & Keyword$Flashback
|
||||
Oracle:{T}: Add one mana of any color.\n{T}: Add two mana of any one color. Spend this mana only to cast spells from your graveyard.\n{G}{U}, {T}, Exile Rootcoil Creeper: Return target card with flashback you own in exile to your hand.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Name:Runic Repetition
|
||||
ManaCost:2 U
|
||||
Types:Sorcery
|
||||
A:SP$ ChangeZone | Cost$ 2 U | Origin$ Exile | Destination$ Hand | TgtPrompt$ Select target exiled card with flashback you own | ValidTgts$ Card.YouOwn+withFlashback | SpellDescription$ Return target exiled card with flashback you own to your hand.
|
||||
A:SP$ ChangeZone | Cost$ 2 U | Origin$ Exile | Destination$ Hand | TgtPrompt$ Select target exiled card with flashback you own | ValidTgts$ Card.YouOwn+hasKeywordFlashback | SpellDescription$ Return target exiled card with flashback you own to your hand.
|
||||
AI:RemoveDeck:Random
|
||||
Oracle:Return target exiled card with flashback you own to your hand.
|
||||
|
||||
@@ -4,5 +4,5 @@ Types:Creature Spirit
|
||||
PT:4/4
|
||||
K:Flying
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ PhantomSearch | TriggerDescription$ When CARDNAME enters the battlefield, you may search your library for a card with flashback or disturb, put it into your graveyard, then shuffle.
|
||||
SVar:PhantomSearch:DB$ ChangeZone | Origin$ Library | Destination$ Graveyard | ChangeNum$ 1 | ChangeType$ Card.withFlashback+YouOwn,Card.withDisturb+YouOwn
|
||||
SVar:PhantomSearch:DB$ ChangeZone | Origin$ Library | Destination$ Graveyard | ChangeNum$ 1 | ChangeType$ Card.hasKeywordFlashback+YouOwn,Card.withDisturb+YouOwn
|
||||
Oracle:Flying\nWhen Phantom Carriage enters the battlefield, you may search your library for a card with flashback or disturb, put it into your graveyard, then shuffle.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Name:Tombfire
|
||||
ManaCost:B
|
||||
Types:Sorcery
|
||||
A:SP$ ChangeZoneAll | Cost$ B | ValidTgts$ Player | TgtPrompt$ Select target player | Origin$ Graveyard | Destination$ Exile | ChangeType$ Card.withFlashback | SpellDescription$ Target player exiles all cards with flashback from their graveyard.
|
||||
A:SP$ ChangeZoneAll | Cost$ B | ValidTgts$ Player | TgtPrompt$ Select target player | Origin$ Graveyard | Destination$ Exile | ChangeType$ Card.hasKeywordFlashback | SpellDescription$ Target player exiles all cards with flashback from their graveyard.
|
||||
AI:RemoveDeck:Random
|
||||
Oracle:Target player exiles all cards with flashback from their graveyard.
|
||||
|
||||
Reference in New Issue
Block a user