add Jeweled Bird (from Arabian Nights)

This commit is contained in:
slapshot5
2012-01-30 04:24:47 +00:00
parent 322a604cf6
commit 040062a3f4
3 changed files with 25 additions and 5 deletions

1
.gitattributes vendored
View File

@@ -4421,6 +4421,7 @@ res/cardsfolder/j/jeska_warrior_adept.txt svneol=native#text/plain
res/cardsfolder/j/jesters_cap.txt svneol=native#text/plain
res/cardsfolder/j/jesters_mask.txt svneol=native#text/plain
res/cardsfolder/j/jet_medallion.txt svneol=native#text/plain
res/cardsfolder/j/jeweled_bird.txt -text
res/cardsfolder/j/jeweled_spirit.txt svneol=native#text/plain
res/cardsfolder/j/jeweled_torque.txt -text
res/cardsfolder/j/jhessian_balmgiver.txt -text

View File

@@ -0,0 +1,14 @@
Name:Jeweled Bird
ManaCost:1
Types:Artifact
Text:no text
K:Remove CARDNAME from your deck before playing if you're not playing for ante.
A:AB$ ChangeZone | Cost$ T | Defined$ Self | Origin$ Battlefield | Destination$ Ante | RememberChanged$ True | SubAbility$ DBUnAnte | SpellDescription$ Put CARDNAME into the ante. If you do, put all other cards you own from the ante into your graveyard, then draw a card.
SVar:DBUnAnte:DB$ ChangeZoneAll | ConditionCheckSVar$ Y | ConditionSVarCompare$ GT0 | Origin$ Ante | Destination$ Graveyard | ChangeType$ Card.YouOwn+Other | SubAbility$ DBDraw
SVar:DBDraw:DB$ Draw | ConditionCheckSVar$ Y | ConditionSVarCompare$ GT0 | Defined$ You | NumCards$ 1 | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:Y:Remembered$Amount
SVar:RemAIDeck:True
SVar:RemRandomDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/jeweled_bird.jpg
End

View File

@@ -1744,6 +1744,11 @@ public final class AbilityFactoryChangeZone {
sb.append(".");
}
if (destination.equals(Zone.Ante)) {
sb.append("Ante").append(targetname);
sb.append(".");
}
if (destination.equals(Zone.Graveyard)) {
sb.append("Put").append(targetname);
sb.append(" from ").append(origin);
@@ -1944,7 +1949,7 @@ public final class AbilityFactoryChangeZone {
@Override
public String getStackDescription() {
return AbilityFactoryChangeZone.changeZoneAllDescription(af, this);
return AbilityFactoryChangeZone.changeZoneAllStackDescription(af, this);
}
@Override
@@ -1982,7 +1987,7 @@ public final class AbilityFactoryChangeZone {
@Override
public String getStackDescription() {
return AbilityFactoryChangeZone.changeZoneAllDescription(af, this);
return AbilityFactoryChangeZone.changeZoneAllStackDescription(af, this);
}
};
AbilityFactoryChangeZone.setMiscellaneous(af, spChangeZone);
@@ -2014,7 +2019,7 @@ public final class AbilityFactoryChangeZone {
@Override
public String getStackDescription() {
return AbilityFactoryChangeZone.changeZoneAllDescription(af, this);
return AbilityFactoryChangeZone.changeZoneAllStackDescription(af, this);
}
@Override
@@ -2186,7 +2191,7 @@ public final class AbilityFactoryChangeZone {
/**
* <p>
* changeZoneAllDescription.
* changeZoneAllStackDescription.
* </p>
*
* @param af
@@ -2195,7 +2200,7 @@ public final class AbilityFactoryChangeZone {
* a {@link forge.card.spellability.SpellAbility} object.
* @return a {@link java.lang.String} object.
*/
private static String changeZoneAllDescription(final AbilityFactory af, final SpellAbility sa) {
private static String changeZoneAllStackDescription(final AbilityFactory af, final SpellAbility sa) {
// TODO build Stack Description will need expansion as more cards are
// added
final StringBuilder sb = new StringBuilder();