mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Convert Squirrel Nest to StPump
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
Name:Squirrel Nest
|
Name:Squirrel Nest
|
||||||
ManaCost:1 G G
|
ManaCost:1 G G
|
||||||
Types:Enchantment Aura
|
Types:Enchantment Aura
|
||||||
Text:Enchanted land has "Tap: Put a 1/1 green Squirrel creature token onto the battlefield.".
|
Text:no text
|
||||||
K:Enchant land
|
K:Enchant land
|
||||||
|
K:stPumpAll:Card.AttachedBy:0/0/SVar=Token:no Condition:Enchanted land has "Tap: Put a 1/1 green Squirrel creature token onto the battlefield.".
|
||||||
|
SVar:Token:AB$Token | Cost$ T | TokenAmount$ 1 | TokenName$ Squirrel | TokenTypes$ Creature,Squirrel | TokenColors$ Green | TokenPower$ 1 | TokenToughness$ 1 | TokenOwner$ Controller | SpellDescription$ Put a 1/1 green Squirrel creature token onto the battlefield.
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/squirrel_nest.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/squirrel_nest.jpg
|
||||||
SetInfo:ODY|Uncommon|http://magiccards.info/scans/en/od/274.jpg
|
SetInfo:ODY|Uncommon|http://magiccards.info/scans/en/od/274.jpg
|
||||||
|
|||||||
@@ -400,8 +400,16 @@ class CardFactory_Auras {
|
|||||||
|
|
||||||
if (list.isEmpty()) return false;
|
if (list.isEmpty()) return false;
|
||||||
else {
|
else {
|
||||||
list.shuffle();
|
// prefer untapped lands to tapped lands
|
||||||
setTargetCard(list.get(0));
|
CardList untapped = list.getTapState("Untapped");
|
||||||
|
if (untapped.isEmpty()){
|
||||||
|
list.shuffle();
|
||||||
|
setTargetCard(list.get(0));
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
untapped.shuffle();
|
||||||
|
setTargetCard(untapped.get(0));
|
||||||
|
}
|
||||||
return super.canPlayAI();
|
return super.canPlayAI();
|
||||||
}
|
}
|
||||||
}//canPlayAI()
|
}//canPlayAI()
|
||||||
@@ -417,71 +425,12 @@ class CardFactory_Auras {
|
|||||||
|
|
||||||
}//resolve()
|
}//resolve()
|
||||||
};//SpellAbility
|
};//SpellAbility
|
||||||
spell.setType("Extrinsic");
|
//spell.setType("Extrinsic");
|
||||||
|
|
||||||
card.clearSpellAbility();
|
card.clearSpellAbility();
|
||||||
card.addSpellAbility(spell);
|
card.addSpellAbility(spell);
|
||||||
|
|
||||||
Ability_Cost abCost = new Ability_Cost("T", spell.getTargetCard() != null ? spell.getTargetCard().getName(): "", true);
|
|
||||||
final Ability_Activated produceSquirrels = new Ability_Activated(spell.getTargetCard(), abCost, null) {
|
|
||||||
private static final long serialVersionUID = -4800170026789001271L;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
//makeToken();
|
|
||||||
CardFactoryUtil.makeToken("Squirrel", "G 1 1 Squirrel", spell.getTargetCard().getController(), "G", new String[] {
|
|
||||||
"Creature", "Squirrel"}, 1, 1, new String[] {""});
|
|
||||||
}
|
|
||||||
|
|
||||||
};//SpellAbility
|
|
||||||
|
|
||||||
produceSquirrels.setType("Extrinsic"); // Required for Spreading Seas
|
|
||||||
produceSquirrels.setDescription(abCost+"Put a 1/1 green Squirrel creature token onto the battlefield.");
|
|
||||||
produceSquirrels.setStackDescription("Put a 1/1 green Squirrel creature token onto the battlefield.");
|
|
||||||
|
|
||||||
Command onEnchant = new Command() {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3528675502863241126L;
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
if(card.isEnchanting()) {
|
|
||||||
Card crd = card.getEnchanting().get(0);
|
|
||||||
//crd.clearSpellAbility();
|
|
||||||
crd.addSpellAbility(produceSquirrels);
|
|
||||||
}
|
|
||||||
}//execute()
|
|
||||||
};//Command
|
|
||||||
|
|
||||||
Command onUnEnchant = new Command() {
|
|
||||||
private static final long serialVersionUID = -2021446345291180334L;
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
if(card.isEnchanting()) {
|
|
||||||
|
|
||||||
Card crd = card.getEnchanting().get(0);
|
|
||||||
crd.removeSpellAbility(produceSquirrels);
|
|
||||||
}
|
|
||||||
}//execute()
|
|
||||||
};//Command
|
|
||||||
|
|
||||||
Command onLeavesPlay = new Command() {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = -4543302260602460839L;
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
if(card.isEnchanting()) {
|
|
||||||
Card crd = card.getEnchanting().get(0);
|
|
||||||
card.unEnchantCard(crd);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
card.addEnchantCommand(onEnchant);
|
|
||||||
card.addUnEnchantCommand(onUnEnchant);
|
|
||||||
card.addLeavesPlayCommand(onLeavesPlay);
|
|
||||||
|
|
||||||
Input runtime = new Input() {
|
Input runtime = new Input() {
|
||||||
|
|
||||||
private static final long serialVersionUID = 967525396666242309L;
|
private static final long serialVersionUID = 967525396666242309L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user