-Added Joihra of the Ghitu

This commit is contained in:
jendave
2011-08-06 08:20:12 +00:00
parent a528a08462
commit 4930e9be49
3 changed files with 68 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -1907,6 +1907,7 @@ res/cardsfolder/jet_medallion.txt -text svneol=native#text/plain
res/cardsfolder/jhessian_infiltrator.txt -text svneol=native#text/plain
res/cardsfolder/jhessian_lookout.txt -text svneol=native#text/plain
res/cardsfolder/jhessian_zombies.txt -text svneol=native#text/plain
res/cardsfolder/jhoira_of_the_ghitu.txt svneol=native#text/plain
res/cardsfolder/jhovall_queen.txt -text svneol=native#text/plain
res/cardsfolder/jhovall_rider.txt -text svneol=native#text/plain
res/cardsfolder/jodahs_avenger.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,8 @@
Name:Jhoira of the Ghitu
ManaCost:1 U R
Types:Legendary Creature Human Wizard
Text:2, Exile a nonland card from your hand: Put four time counters on the exiled card. If it doesn't have suspend, it gains suspend.
PT:2/2
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/jhoira_of_the_ghitu.jpg
End

View File

@@ -3,6 +3,7 @@ package forge;
import java.util.ArrayList;
import java.util.Stack;
import java.util.HashMap;
import java.util.List;
import java.util.Random;
@@ -5428,6 +5429,64 @@ public class CardFactory_Creatures {
card.addSpellAbility(ability);
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Jhoira of the Ghitu")) {
final Stack<Card> chosen= new Stack<Card>();
final SpellAbility ability = new Ability(card, "2") {
private static final long serialVersionUID = 4414609319033894302L;
@Override
public boolean canPlay() {
CardList possible = new CardList(AllZone.getZone(Constant.Zone.Hand, card.getController()).getCards());
possible.filter(new CardListFilter(){
public boolean addCard(Card c){
return !c.isLand();
}
});
return !possible.isEmpty() && super.canPlay();
}
/*@Override
public void chooseTargetAI() {
CardList targets = new CardList(AllZone.Computer_Hand.getCards());
CardListUtil.sortCMC(targets);
Card c = targets.get(0);
AllZone.GameAction.removeFromGame(c);
chosen.push(c);
}*/
public boolean canPlayAI(){return false;}
@Override
public void resolve() {
Card c = chosen.pop();
c.addCounter(Counters.TIME, 4);
c.setSuspend(true);
}
};
ability.setAfterPayMana(new Input() {
private static final long serialVersionUID = -1647181037510967127L;
@Override
public void showMessage()
{
ButtonUtil.disableAll();
AllZone.Display.showMessage("Exile a nonland card from your hand.");
}
@Override
public void selectCard(Card c, PlayerZone zone)
{
if(zone.is(Constant.Zone.Hand) && !c.isLand())
{
AllZone.GameAction.removeFromGame(c);
chosen.push(c);
AllZone.Stack.add(ability);
stopSetNext(new ComputerAI_StackNotEmpty());
}
}
});
card.addSpellAbility(ability);
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Mindwrack Liege")) {