- Converted Hidetsugus Second Rite to script.

This commit is contained in:
jeffwadsworth
2012-01-22 00:33:01 +00:00
parent 1393415010
commit e4e12c0d1c
2 changed files with 4 additions and 28 deletions

View File

@@ -1,7 +1,10 @@
Name:Hidetsugu's Second Rite
ManaCost:3 R
Types:Instant
Text:If target player has exactly 10 life, Hidetsugu's Second Rite deals 10 damage to that player.
Text:no text
A:SP$ DealDamage | Cost$ 3 R | ValidTgts$ Player | TgtPrompt$ Select target player | ConditionCheckSVar$ X | ConditionSVarCompare$ EQ10 | NumDmg$ 10 | SpellDescription$ If target player has exactly 10 life, CARDNAME deals 10 damage to that player.
SVar:X:TargetedPlayer$LifeTotal
SVar:RemAIDeck:True
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://resources.wizards.com/magic/cards/sok/en-us/card88818.jpg

View File

@@ -275,33 +275,6 @@ public class CardFactoryInstants {
} //*************** END ************ END **************************
// *************** START *********** START **************************
else if (cardName.equals("Hidetsugu's Second Rite")) {
final Target t = new Target(card, "Select target player", "Player");
final Cost cost = new Cost("3 R", cardName, false);
final SpellAbility spell = new Spell(card, cost, t) {
private static final long serialVersionUID = 176857775451818523L;
@Override
public void resolve() {
if (this.getTargetPlayer().getLife() == 10) {
this.getTargetPlayer().addDamage(10, card);
}
}
@Override
public boolean canPlayAI() {
return AllZone.getHumanPlayer().getLife() == 10;
}
};
spell.setChooseTargetAI(CardFactoryUtil.targetHumanAI());
card.addSpellAbility(spell);
card.setSVar("PlayMain1", "TRUE");
} // *************** END ************ END **************************
// *************** START *********** START **************************
else if (cardName.equals("Echoing Truth")) {
final SpellAbility spell = new Spell(card) {