mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Converted Ichor Slick to script.
This commit is contained in:
@@ -4,7 +4,8 @@ Types:Sorcery
|
||||
Text:no text
|
||||
K:Cycling:2
|
||||
K:Madness:3 B
|
||||
A:SP$ Pump | Cost$ 2 B | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ -3 | NumDef$ -3 | IsCurse$ True | SpellDescription$ Target creature gets -3/-3 until end of turn.
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://resources.wizards.com/magic/cards/fut/en-us/card130683.jpg
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/ichor_slick.jpg
|
||||
SetInfo:FUT|Common|http://magiccards.info/scans/en/fut/68.jpg
|
||||
End
|
||||
@@ -6,7 +6,7 @@
|
||||
<int>0</int>
|
||||
<int>0</int>
|
||||
<int>1600</int>
|
||||
<int>1123</int>
|
||||
<int>1114</int>
|
||||
</object>
|
||||
</void>
|
||||
<void id="ArrayList0" property="children">
|
||||
@@ -16,8 +16,8 @@
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>0</int>
|
||||
<int>0</int>
|
||||
<int>197</int>
|
||||
<int>1123</int>
|
||||
<int>447</int>
|
||||
<int>1114</int>
|
||||
</object>
|
||||
</void>
|
||||
<void id="ArrayList1" property="children">
|
||||
@@ -27,8 +27,8 @@
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>0</int>
|
||||
<int>0</int>
|
||||
<int>447</int>
|
||||
<int>197</int>
|
||||
<int>199</int>
|
||||
</object>
|
||||
</void>
|
||||
<void property="name">
|
||||
@@ -47,8 +47,8 @@
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>0</int>
|
||||
<int>199</int>
|
||||
<int>197</int>
|
||||
<int>447</int>
|
||||
<int>5</int>
|
||||
</object>
|
||||
</void>
|
||||
@@ -62,9 +62,9 @@
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>0</int>
|
||||
<int>204</int>
|
||||
<int>197</int>
|
||||
<int>280</int>
|
||||
<int>202</int>
|
||||
<int>447</int>
|
||||
<int>278</int>
|
||||
</object>
|
||||
</void>
|
||||
<void property="name">
|
||||
@@ -83,8 +83,8 @@
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>0</int>
|
||||
<int>484</int>
|
||||
<int>197</int>
|
||||
<int>480</int>
|
||||
<int>447</int>
|
||||
<int>5</int>
|
||||
</object>
|
||||
</void>
|
||||
@@ -98,9 +98,9 @@
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>0</int>
|
||||
<int>489</int>
|
||||
<int>197</int>
|
||||
<int>147</int>
|
||||
<int>485</int>
|
||||
<int>447</int>
|
||||
<int>145</int>
|
||||
</object>
|
||||
</void>
|
||||
<void property="name">
|
||||
@@ -119,8 +119,8 @@
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>0</int>
|
||||
<int>636</int>
|
||||
<int>197</int>
|
||||
<int>630</int>
|
||||
<int>447</int>
|
||||
<int>5</int>
|
||||
</object>
|
||||
</void>
|
||||
@@ -134,9 +134,9 @@
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>0</int>
|
||||
<int>641</int>
|
||||
<int>197</int>
|
||||
<int>194</int>
|
||||
<int>635</int>
|
||||
<int>447</int>
|
||||
<int>192</int>
|
||||
</object>
|
||||
</void>
|
||||
<void property="name">
|
||||
@@ -155,8 +155,8 @@
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>0</int>
|
||||
<int>835</int>
|
||||
<int>197</int>
|
||||
<int>827</int>
|
||||
<int>447</int>
|
||||
<int>5</int>
|
||||
</object>
|
||||
</void>
|
||||
@@ -170,9 +170,9 @@
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>0</int>
|
||||
<int>840</int>
|
||||
<int>197</int>
|
||||
<int>283</int>
|
||||
<int>832</int>
|
||||
<int>447</int>
|
||||
<int>282</int>
|
||||
</object>
|
||||
</void>
|
||||
<void property="name">
|
||||
@@ -202,10 +202,10 @@
|
||||
<object class="org.jdesktop.swingx.MultiSplitLayout$Divider">
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>197</int>
|
||||
<int>447</int>
|
||||
<int>0</int>
|
||||
<int>5</int>
|
||||
<int>1123</int>
|
||||
<int>1114</int>
|
||||
</object>
|
||||
</void>
|
||||
<void property="parent">
|
||||
@@ -217,10 +217,10 @@
|
||||
<object id="MultiSplitLayout$Split2" class="org.jdesktop.swingx.MultiSplitLayout$Split">
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>202</int>
|
||||
<int>452</int>
|
||||
<int>0</int>
|
||||
<int>1083</int>
|
||||
<int>1123</int>
|
||||
<int>833</int>
|
||||
<int>1114</int>
|
||||
</object>
|
||||
</void>
|
||||
<void id="ArrayList2" property="children">
|
||||
@@ -228,10 +228,10 @@
|
||||
<object class="org.jdesktop.swingx.MultiSplitLayout$Leaf">
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>202</int>
|
||||
<int>452</int>
|
||||
<int>0</int>
|
||||
<int>1083</int>
|
||||
<int>501</int>
|
||||
<int>833</int>
|
||||
<int>497</int>
|
||||
</object>
|
||||
</void>
|
||||
<void property="name">
|
||||
@@ -249,9 +249,9 @@
|
||||
<object class="org.jdesktop.swingx.MultiSplitLayout$Divider">
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>202</int>
|
||||
<int>501</int>
|
||||
<int>1083</int>
|
||||
<int>452</int>
|
||||
<int>497</int>
|
||||
<int>833</int>
|
||||
<int>5</int>
|
||||
</object>
|
||||
</void>
|
||||
@@ -264,10 +264,10 @@
|
||||
<object class="org.jdesktop.swingx.MultiSplitLayout$Leaf">
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>202</int>
|
||||
<int>506</int>
|
||||
<int>1083</int>
|
||||
<int>404</int>
|
||||
<int>452</int>
|
||||
<int>502</int>
|
||||
<int>833</int>
|
||||
<int>400</int>
|
||||
</object>
|
||||
</void>
|
||||
<void property="name">
|
||||
@@ -285,9 +285,9 @@
|
||||
<object class="org.jdesktop.swingx.MultiSplitLayout$Divider">
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>202</int>
|
||||
<int>910</int>
|
||||
<int>1083</int>
|
||||
<int>452</int>
|
||||
<int>902</int>
|
||||
<int>833</int>
|
||||
<int>5</int>
|
||||
</object>
|
||||
</void>
|
||||
@@ -300,10 +300,10 @@
|
||||
<object class="org.jdesktop.swingx.MultiSplitLayout$Leaf">
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>202</int>
|
||||
<int>915</int>
|
||||
<int>1083</int>
|
||||
<int>208</int>
|
||||
<int>452</int>
|
||||
<int>907</int>
|
||||
<int>833</int>
|
||||
<int>207</int>
|
||||
</object>
|
||||
</void>
|
||||
<void property="name">
|
||||
@@ -339,7 +339,7 @@
|
||||
<int>1285</int>
|
||||
<int>0</int>
|
||||
<int>5</int>
|
||||
<int>1123</int>
|
||||
<int>1114</int>
|
||||
</object>
|
||||
</void>
|
||||
<void property="parent">
|
||||
@@ -354,7 +354,7 @@
|
||||
<int>1290</int>
|
||||
<int>0</int>
|
||||
<int>310</int>
|
||||
<int>1123</int>
|
||||
<int>1114</int>
|
||||
</object>
|
||||
</void>
|
||||
<void id="ArrayList3" property="children">
|
||||
@@ -365,7 +365,7 @@
|
||||
<int>1290</int>
|
||||
<int>0</int>
|
||||
<int>310</int>
|
||||
<int>622</int>
|
||||
<int>618</int>
|
||||
</object>
|
||||
</void>
|
||||
<void property="name">
|
||||
@@ -384,7 +384,7 @@
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>1290</int>
|
||||
<int>622</int>
|
||||
<int>618</int>
|
||||
<int>310</int>
|
||||
<int>5</int>
|
||||
</object>
|
||||
@@ -399,9 +399,9 @@
|
||||
<void property="bounds">
|
||||
<object class="java.awt.Rectangle">
|
||||
<int>1290</int>
|
||||
<int>627</int>
|
||||
<int>623</int>
|
||||
<int>310</int>
|
||||
<int>496</int>
|
||||
<int>491</int>
|
||||
</object>
|
||||
</void>
|
||||
<void property="name">
|
||||
|
||||
@@ -1618,91 +1618,6 @@ public class CardFactory_Sorceries {
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Ichor Slick")) {
|
||||
final SpellAbility spell = new Spell(card) {
|
||||
private static final long serialVersionUID = -273970706213674570L;
|
||||
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
CardList c = CardFactoryUtil.AI_getHumanCreature(3, card, true);
|
||||
CardListUtil.sortAttack(c);
|
||||
CardListUtil.sortFlying(c);
|
||||
|
||||
if(c.isEmpty()) return false;
|
||||
else {
|
||||
setTargetCard(c.get(0));
|
||||
return true;
|
||||
}
|
||||
}//canPlayAI()
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
final Card[] target = new Card[1];
|
||||
final Command untilEOT = new Command() {
|
||||
private static final long serialVersionUID = -1615047325868708734L;
|
||||
|
||||
public void execute() {
|
||||
if(AllZone.GameAction.isCardInPlay(target[0])) {
|
||||
target[0].addTempAttackBoost(3);
|
||||
target[0].addTempDefenseBoost(3);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
target[0] = getTargetCard();
|
||||
if(AllZone.GameAction.isCardInPlay(target[0]) && CardFactoryUtil.canTarget(card, target[0])) {
|
||||
target[0].addTempAttackBoost(-3);
|
||||
target[0].addTempDefenseBoost(-3);
|
||||
|
||||
AllZone.EndOfTurn.addUntil(untilEOT);
|
||||
}
|
||||
}//resolve()
|
||||
};//SpellAbility
|
||||
|
||||
Input target = new Input() {
|
||||
private static final long serialVersionUID = -7381927922574152604L;
|
||||
|
||||
@Override
|
||||
public void showMessage() {
|
||||
AllZone.Display.showMessage("Select target creature for " + card.getName());
|
||||
ButtonUtil.enableOnlyCancel();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void selectButtonCancel() {
|
||||
stop();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void selectCard(Card card, PlayerZone zone) {
|
||||
if(!CardFactoryUtil.canTarget(spell, card)) {
|
||||
AllZone.Display.showMessage("Cannot target this card (Shroud? Protection?).");
|
||||
} else if(card.isCreature() && zone.is(Constant.Zone.Battlefield)) {
|
||||
spell.setTargetCard(card);
|
||||
if(this.isFree())
|
||||
{
|
||||
this.setFree(false);
|
||||
AllZone.Stack.add(spell);
|
||||
stop();
|
||||
}
|
||||
else
|
||||
stopSetNext(new Input_PayManaCost(spell));
|
||||
}
|
||||
}
|
||||
};//Input
|
||||
spell.setDescription("Target creature gets -3/-3 until end of turn");
|
||||
|
||||
card.clearSpellAbility();
|
||||
card.addSpellAbility(spell);
|
||||
|
||||
card.setSVar("PlayMain1", "TRUE");
|
||||
|
||||
spell.setBeforePayMana(target);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Commune with Nature")) {
|
||||
|
||||
Reference in New Issue
Block a user