mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Added Zombie Scavengers.
- Converted Necratog to script.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -9211,6 +9211,7 @@ res/cardsfolder/z/zombie_master.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/z/zombie_mob.txt svneol=native#text/plain
|
res/cardsfolder/z/zombie_mob.txt svneol=native#text/plain
|
||||||
res/cardsfolder/z/zombie_musher.txt svneol=native#text/plain
|
res/cardsfolder/z/zombie_musher.txt svneol=native#text/plain
|
||||||
res/cardsfolder/z/zombie_outlander.txt svneol=native#text/plain
|
res/cardsfolder/z/zombie_outlander.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/z/zombie_scavengers.txt -text
|
||||||
res/cardsfolder/z/zombie_trailblazer.txt svneol=native#text/plain
|
res/cardsfolder/z/zombie_trailblazer.txt svneol=native#text/plain
|
||||||
res/cardsfolder/z/zombify.txt svneol=native#text/plain
|
res/cardsfolder/z/zombify.txt svneol=native#text/plain
|
||||||
res/cardsfolder/z/zoologist.txt svneol=native#text/plain
|
res/cardsfolder/z/zoologist.txt svneol=native#text/plain
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ ManaCost:1 B B
|
|||||||
Types:Creature Atog
|
Types:Creature Atog
|
||||||
Text:no text
|
Text:no text
|
||||||
PT:1/2
|
PT:1/2
|
||||||
SVar:RemAIDeck:True
|
A:AB$ Pump | Cost$ ExileFromGrave<1/Card.TopGraveyardCreature> | CostDesc$ Exile the top creature card of your graveyard: | NumAtt$ +2 | NumDef$ +2 | SpellDescription$ CARDNAME gets +2/+2 until end of turn.
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/necratog.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/necratog.jpg
|
||||||
SetInfo:WTH|Uncommon|http://magiccards.info/scans/en/wl/18.jpg
|
SetInfo:WTH|Uncommon|http://magiccards.info/scans/en/wl/18.jpg
|
||||||
|
|||||||
11
res/cardsfolder/z/zombie_scavengers.txt
Normal file
11
res/cardsfolder/z/zombie_scavengers.txt
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Name:Zombie Scavengers
|
||||||
|
ManaCost:2 B
|
||||||
|
Types:Creature Zombie
|
||||||
|
Text:no text
|
||||||
|
PT:3/1
|
||||||
|
A:AB$ Regenerate | Cost$ ExileFromGrave<1/Card.TopGraveyardCreature> | CostDesc$ Exile the top creature card of your graveyard: | SpellDescription$ Regenerate CARDNAME.
|
||||||
|
SVar:Rarity:Common
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/zombie_scavengers.jpg
|
||||||
|
SetInfo:WTH|Common|http://magiccards.info/scans/en/wl/29.jpg
|
||||||
|
Oracle:Exile the top creature card of your graveyard: Regenerate Zombie Scavengers.
|
||||||
|
End
|
||||||
@@ -2117,82 +2117,6 @@ public class CardFactory_Creatures {
|
|||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
|
||||||
else if (cardName.equals("Necratog")) {
|
|
||||||
final Command untilEOT = new Command() {
|
|
||||||
private static final long serialVersionUID = 6743592637334556854L;
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
if (AllZoneUtil.isCardInPlay(card)) {
|
|
||||||
card.addTempAttackBoost(-2);
|
|
||||||
card.addTempDefenseBoost(-2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
final SpellAbility ability = new Ability(card, "0") {
|
|
||||||
@Override
|
|
||||||
public boolean canPlayAI() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canPlay() {
|
|
||||||
CardList grave = card.getController().getCardsIn(Zone.Graveyard);
|
|
||||||
grave = grave.filter(CardListFilter.creatures);
|
|
||||||
return super.canPlay() && grave.size() > 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
if (AllZoneUtil.isCardInPlay(card)) {
|
|
||||||
card.addTempAttackBoost(2);
|
|
||||||
card.addTempDefenseBoost(2);
|
|
||||||
AllZone.getEndOfTurn().addUntil(untilEOT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
Input runtime = new Input() {
|
|
||||||
private static final long serialVersionUID = 63327418012595048L;
|
|
||||||
Card topCreature = null;
|
|
||||||
|
|
||||||
public void showMessage() {
|
|
||||||
|
|
||||||
PlayerZone grave = card.getController().getZone(Constant.Zone.Graveyard);
|
|
||||||
for (int i = grave.size() - 1; i >= 0; i--) {
|
|
||||||
Card c = grave.get(i);
|
|
||||||
if (c.isCreature()) {
|
|
||||||
topCreature = c;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
AllZone.getDisplay().showMessage(card.getName() + " - Select OK to exile " + topCreature + ".");
|
|
||||||
ButtonUtil.enableAll();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void selectButtonOK() {
|
|
||||||
AllZone.getGameAction().exile(topCreature);
|
|
||||||
AllZone.getStack().add(ability);
|
|
||||||
stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void selectButtonCancel() {
|
|
||||||
stop();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
ability.setDescription("Exile the top creature card of your graveyard: CARDNAME gets +2/+2 until end of turn.");
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(card).append(" gets +2/+2 until end of turn.");
|
|
||||||
ability.setStackDescription(sb.toString());
|
|
||||||
ability.setBeforePayMana(runtime);
|
|
||||||
card.addSpellAbility(ability);
|
|
||||||
}//*************** END ************ END **************************
|
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if (cardName.equals("Phyrexian Scuta")) {
|
else if (cardName.equals("Phyrexian Scuta")) {
|
||||||
Cost abCost = new Cost("3 B PayLife<3>", cardName, false);
|
Cost abCost = new Cost("3 B PayLife<3>", cardName, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user