add Lifeforce and Deathgrip (from original base Alpha)

This commit is contained in:
jendave
2011-08-06 09:57:42 +00:00
parent 61586ce80e
commit a2e88e0fe3
4 changed files with 90 additions and 0 deletions

2
.gitattributes vendored
View File

@@ -1012,6 +1012,7 @@ res/cardsfolder/death_ward.txt -text svneol=native#text/plain
res/cardsfolder/deathbringer_thoctar.txt -text svneol=native#text/plain
res/cardsfolder/deathgazer.txt -text svneol=native#text/plain
res/cardsfolder/deathgreeter.txt -text svneol=native#text/plain
res/cardsfolder/deathgrip.txt -text svneol=native#text/plain
res/cardsfolder/deathknell_kami.txt -text svneol=native#text/plain
res/cardsfolder/deathless_angel.txt -text svneol=native#text/plain
res/cardsfolder/deathmark.txt -text svneol=native#text/plain
@@ -2473,6 +2474,7 @@ res/cardsfolder/lieutenant_kirtar.txt -text svneol=native#text/plain
res/cardsfolder/life_burst.txt -text svneol=native#text/plain
res/cardsfolder/life_from_the_loam.txt -text svneol=native#text/plain
res/cardsfolder/lifeblood.txt -text svneol=native#text/plain
res/cardsfolder/lifeforce.txt -text svneol=native#text/plain
res/cardsfolder/lifegift.txt -text svneol=native#text/plain
res/cardsfolder/lifelink.txt -text svneol=native#text/plain
res/cardsfolder/lifesmith.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,7 @@
Name:Deathgrip
ManaCost:B B
Types:Enchantment
Text:B B: Counter target green spell.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/deathgrip.jpg
End

View File

@@ -0,0 +1,7 @@
Name:Lifeforce
ManaCost:G G
Types:Enchantment
Text:G G: Counter target black spell.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/lifeforce.jpg
End

View File

@@ -11860,6 +11860,80 @@ public class CardFactory implements NewConstants {
ability.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
ability.setBeforePayMana(CardFactoryUtil.input_targetPlayer(ability));
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Lifeforce")) {
final SpellAbility counter = new Ability(card, "G G") {
@Override
public boolean canPlayAI() {
System.out.println("AI is pondering using "+cardName);
return canPlay();
}
@Override
public boolean canPlay() {
if(AllZone.Stack.size() == 0){
return false;
}
else {
SpellAbility sa = AllZone.Stack.peek();
if(sa.isAbility()) return false;
Card tgtCard = sa.getSourceCard();
if(tgtCard.isBlack()) return true;
}
return false;
}
@Override
public void resolve() {
System.out.println("Resolving " + card.getName());
SpellAbility sa = AllZone.Stack.pop();
AllZone.GameAction.moveToGraveyard(sa.getSourceCard());
}
};//Ability
counter.setStackDescription(cardName+" - counter target black spell.");
card.addSpellAbility(counter);
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Deathgrip")) {
final SpellAbility counter = new Ability(card, "B B") {
@Override
public boolean canPlayAI() {
System.out.println("AI is pondering using "+cardName);
return canPlay();
}
@Override
public boolean canPlay() {
if(AllZone.Stack.size() == 0){
return false;
}
else {
SpellAbility sa = AllZone.Stack.peek();
if(sa.isAbility()) return false;
Card tgtCard = sa.getSourceCard();
if(tgtCard.isGreen()) return true;
}
return false;
}
@Override
public void resolve() {
System.out.println("Resolving " + card.getName());
SpellAbility sa = AllZone.Stack.pop();
AllZone.GameAction.moveToGraveyard(sa.getSourceCard());
}
};//Ability
counter.setStackDescription(cardName+" - counter target green spell.");
card.addSpellAbility(counter);
}//*************** END ************ END **************************
return postFactoryKeywords(card);
}//getCard2