It is currently 03 Sep 2025, 16:14
   
Text Size

Some spells with cantrip

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Some spells with cantrip

Postby Sloth » 03 Aug 2009, 15:08

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");
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Some spells with cantrip

Postby mtgrares » 03 Aug 2009, 19:43

Thanks.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 35 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 35 users online :: 0 registered, 0 hidden and 35 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 35 guests

Login Form