Page 1 of 1

Some spells with cantrip

PostPosted: 03 Aug 2009, 15:08
by Sloth
I found some spells with the keyword cantrip that can be easily added:
cards.txt:
Code: Select all
Tranquil Path
4 G
Sorcery
Destroy all enchantments. Draw a card.
Cantrip

Touch of Invisibility
3 U
Sorcery
Target creature is unblockable this turn. Draw a card.
spPumpTgt:Unblockable
Cantrip

Symbol of Unsummoning
2 U
Sorcery
Return target creature to its owner's hand. Draw a card.
Cantrip

Recover
2 B
Sorcery
Return target creature card from your graveyard to your hand. Draw a card.
Cantrip

Dismiss
2 U U
Instant
Counter target spell. Draw a card.
Cantrip
The following lines have been modified in cardfactory.java:
Code: Select all
if(cardName.equals("Counterspell") || cardName.equals("Cancel") || cardName.equals("Dismiss"))

if(cardName.equals("Raise Dead") || cardName.equals("Disentomb") || cardName.equals(" Recover"))

if(cardName.equals("Unsummon") || cardName.equals("Symbol of Unsummoning"))

if (cardName.equals("Tranquility") || cardName.equals("Tempest of Light") || cardName.equals("Tranquil Path"))
The following lines have to be added in GenerateConstructedDeck.java just behind the counterspell entry:
Code: Select all
remove.add("Cancel");
remove.add("Dismiss");

Re: Some spells with cantrip

PostPosted: 03 Aug 2009, 19:43
by mtgrares
Thanks.