mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Converted Hidetsugus Second Rite to script.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user