*Added Stone Giant

This commit is contained in:
jendave
2011-08-06 10:22:55 +00:00
parent 0f5bcaff77
commit cb9b2dfaa1
5 changed files with 76 additions and 5 deletions

1
.gitattributes vendored
View File

@@ -4196,6 +4196,7 @@ res/cardsfolder/stolen_grain.txt -text svneol=native#text/plain
res/cardsfolder/stomper_cub.txt -text svneol=native#text/plain res/cardsfolder/stomper_cub.txt -text svneol=native#text/plain
res/cardsfolder/stomping_ground.txt -text svneol=native#text/plain res/cardsfolder/stomping_ground.txt -text svneol=native#text/plain
res/cardsfolder/stone_calendar.txt -text svneol=native#text/plain res/cardsfolder/stone_calendar.txt -text svneol=native#text/plain
res/cardsfolder/stone_giant.txt -text svneol=native#text/plain
res/cardsfolder/stone_golem.txt -text svneol=native#text/plain res/cardsfolder/stone_golem.txt -text svneol=native#text/plain
res/cardsfolder/stone_kavu.txt -text svneol=native#text/plain res/cardsfolder/stone_kavu.txt -text svneol=native#text/plain
res/cardsfolder/stone_rain.txt -text svneol=native#text/plain res/cardsfolder/stone_rain.txt -text svneol=native#text/plain

View File

@@ -1,8 +1,8 @@
#Uses Card-specific code!
Name:Galvanic Blast Name:Galvanic Blast
ManaCost:R ManaCost:R
Types:Instant Types:Instant
Text:Galvanic Blast deals 2 damage to target creature or player.\r\nMetalcraft - Galvanic Blast deals 4 damage to that creature or player instead if you control three or more artifacts. Text:Galvanic Blast deals 2 damage to target creature or player.\r\nMetalcraft - Galvanic Blast deals 4 damage to that creature or player instead if you control three or more artifacts.
SVar:Rarity:Common SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/galvanic_blast.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/galvanic_blast.jpg
End End
#Uses Card-specific code!

View File

@@ -1,4 +1,3 @@
#Uses card-specific code!
Name:Pithing Needle Name:Pithing Needle
ManaCost:1 ManaCost:1
Types:Artifact Types:Artifact
@@ -6,4 +5,5 @@ Text:As Pithing Needle enters the battlefield, name a card.\r\nActivated abiliti
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/pithing_needle.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/pithing_needle.jpg
SVar:RemAIDeck:True SVar:RemAIDeck:True
End End
#Uses card-specific code!

View File

@@ -0,0 +1,9 @@
Name:Stone Giant
ManaCost:2 R R
Types:Creature Giant
Text:no text
PT:3/4
SVar:Rarity:Uncommon
SVar:RemAIDeck:True
End
#Uses card-specific code!

View File

@@ -94,7 +94,68 @@ public class CardFactory_Creatures {
return newCard; return newCard;
}//*************** END ************ END ************************** }//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Stone Giant")) {
final ArrayList<Card> Tgt = new ArrayList<Card>();
final Command untilEOT = new Command() {
private static final long serialVersionUID = -6829468812598100958L;
//@Override
public void execute() {
for(Card c : Tgt)
{
AllZone.GameAction.destroy(c);
}
Tgt.clear();
}
};
final SpellAbility ability = new Ability_Tap(card) {
private static final long serialVersionUID = -807485081546883513L;
public void resolve() {
getTargetCard().addOtherExtrinsicKeyword("Flying");
Tgt.add(getTargetCard());
AllZone.EndOfTurn.addAt(untilEOT);
}
public boolean canPlay() {
CardList creats = new CardList(AllZone.getZone(Constant.Zone.Play,card.getController()).getCards());
creats = creats.filter(new CardListFilter() {
public boolean addCard(Card c) {
return c.getType().contains("Creature") && c.getNetDefense() < card.getNetAttack();
}
});
return creats.size() > 0 && !card.isTapped() && !card.isSick();
}
};
Input runtime = new Input() {
private static final long serialVersionUID = 2101131021036402902L;
@Override
public void showMessage() {
CardList valids = new CardList(AllZone.getZone(Constant.Zone.Play,card.getController()).getCards());
valids = valids.filter(new CardListFilter() {
public boolean addCard(Card c) {
return c.getNetDefense() < card.getNetAttack();
}
});
stopSetNext(CardFactoryUtil.input_targetSpecific(ability,valids,"Select target creature you control with toughness less than Stone Giant's power.",true,false));
}
};
ability.setBeforePayMana(runtime);
ability.setDescription("Tap: Target creature you control with toughness less than Stone Giant's power gains flying until end of turn. Destroy that creature at the beginning of the next end step.");
card.addSpellAbility(ability);
}//*************** END ************ END **************************
//*************** START *********** START ************************** //*************** START *********** START **************************
else if(cardName.equals("Belligerent Hatchling") || cardName.equals("Noxious Hatchling") else if(cardName.equals("Belligerent Hatchling") || cardName.equals("Noxious Hatchling")
|| cardName.equals("Shrewd Hatchling") || cardName.equals("Sturdy Hatchling") || cardName.equals("Shrewd Hatchling") || cardName.equals("Sturdy Hatchling")