Champions of Kamigawa cards
Post MTG Forge Related Programming Questions Here
	Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
			1 post
			 • Page 1 of 1
		
	
Champions of Kamigawa cards
 by cyclope » 22 May 2010, 17:55
by cyclope » 22 May 2010, 17:55 
I think we could add this card to Forge: Innocence Kami
Here is my code:
Hundred-Talon Kami
4 W
Creature Spirit
2/3
Flying
Soulshift 4
Tell me if i've made some errors...
			
		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
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
			1 post
			 • Page 1 of 1
		
	
Who is online
Users browsing this forum: No registered users and 5 guests
