mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Converted Deep Analysis to script.
This commit is contained in:
@@ -2,6 +2,8 @@ Name:Deep Analysis
|
||||
ManaCost:3 U
|
||||
Types:Sorcery
|
||||
Text:no text
|
||||
K:Flashback:1 U PayLife<3>
|
||||
A:SP$ Draw | Cost$ 3 U | ValidTgts$ Player | TgtPrompt$ Select target player | NumCards$ 2 | SpellDescription$ Target player draws two cards.
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/deep_analysis.jpg
|
||||
SetInfo:TOR|Common|http://magiccards.info/scans/en/tr/36.jpg
|
||||
|
||||
@@ -1473,34 +1473,6 @@ public class CardFactory_Sorceries {
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Deep Analysis")) {
|
||||
SpellAbility spell = new Spell(card) {
|
||||
|
||||
private static final long serialVersionUID = 6317660847906461825L;
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
card.getController().drawCards(2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
return AllZone.Computer_Hand.getCards().length <= 6;
|
||||
}
|
||||
};
|
||||
spell.setDescription("Target player draws two cards.");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(card.getName()).append(" - ").append(card.getController()).append(" draws two cards.");
|
||||
spell.setStackDescription(sb.toString());
|
||||
|
||||
card.clearSpellAbility();
|
||||
card.addSpellAbility(spell);
|
||||
|
||||
card.addSpellAbility(CardFactoryUtil.ability_Flashback(card, "1 U PayLife<3>"));
|
||||
card.setFlashback(true);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Pulse of the Tangle")) {
|
||||
|
||||
Reference in New Issue
Block a user