It is currently 09 Sep 2025, 04:45
   
Text Size

Champions of Kamigawa cards

Post MTG Forge Related Programming Questions Here

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

Champions of Kamigawa cards

Postby cyclope » 22 May 2010, 17:55

I think we could add this card to Forge: Innocence Kami
Here is my code:
Code: Select all
[b][i]In CardFactory_Creatures.java:[/i][/b]
in the line: if(cardName.equals("Goldmeadow Harrier") || cardName.equals("Loxodon Mystic")
|| cardName.equals("Master Decoy") || cardName.equals("Benalish Trapper")
|| cardName.equals("Whipcorder") || cardName.equals("Blinding Mage")
|| cardName.equals("Ostiary Thrull") || cardName.equals("Squall Drifter")
|| cardName.equals("Stormscape Apprentice") || cardName.equals("Thornscape Apprentice")
|| cardName.equals("Naya Battlemage")) 
simply add: || cardName.equals("Innocence Kami")


[b][i]in GameActionUtil.java:[/i][/b]
public static void playCard_Innocence_Kami(Card c) {
final PlayerZone play = AllZone.getZone(Constant.Zone.Play, c.getController());


CardList list = new CardList();
list.addAll(play.getCards());

list = list.getName("Innocence Kami");

if(c.getType().contains("Spirit")|| c.getKeyword().contains("Changeling")|| c.getType().contains("Arcane")) {
for(int i = 0; i < list.size(); i++) {
final Card card = list.get(i);

Ability ability2 = new Ability(card, "0") {
@Override
public void resolve() {
if(card.isTapped()) card.untap();
}
}; // ability2

ability2.setStackDescription(card.getName() + " - " + " untaps");
AllZone.Stack.add(ability2);

} // for
}// if is spirit or arcane
}//Innocence Kami

[b][i]In Cards.txt:[/i][/b]
Innocence Kami
3 W W
Creature Spirit
2/3
and we could add easily in cards.txt this card:
Hundred-Talon Kami
4 W
Creature Spirit
2/3
Flying
Soulshift 4

Tell me if i've made some errors...
cyclope
 
Posts: 69
Joined: 28 Sep 2009, 18:08
Has thanked: 0 time
Been thanked: 0 time

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 34 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 34 users online :: 0 registered, 0 hidden and 34 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 34 guests

Login Form