- Added Retraced Image.

This commit is contained in:
jeffwadsworth
2012-03-04 19:21:16 +00:00
parent e6f723eb5f
commit 3d7dc5f9fc
3 changed files with 27 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -7154,6 +7154,7 @@ res/cardsfolder/r/retaliate.txt svneol=native#text/plain
res/cardsfolder/r/retaliation.txt -text svneol=unset#text/plain
res/cardsfolder/r/retaliator_griffin.txt -text
res/cardsfolder/r/rethink.txt -text
res/cardsfolder/r/retraced_image.txt -text svneol=unset#text/plain
res/cardsfolder/r/retract.txt svneol=native#text/plain
res/cardsfolder/r/retribution_of_the_meek.txt svneol=native#text/plain
res/cardsfolder/r/retromancer.txt svneol=native#text/plain

View File

@@ -0,0 +1,12 @@
Name:Retraced Image
ManaCost:U
Types:Sorcery
Text:no text
A:SP$ Reveal | Cost$ U | RememberRevealed$ True | SubAbility$ DBRetracedChangeZone | SpellDescription$ Reveal a card in your hand, then put that card onto the battlefield if it has the same name as a permanent.
SVar:DBRetracedChangeZone:DB$ ChangeZone | Defined$ Remembered | Origin$ Hand | Destination$ Battlefield | ConditionDefined$ Remembered | ConditionPresent$ Card.sharesNameWith YourBattlefield | ConditionCompare$ GE1 | SubAbility$ DBRetracedCleanup
SVar:DBRetracedCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:RemAIDeck:True
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/retraced_image.jpg
End

View File

@@ -6900,6 +6900,20 @@ public class Card extends GameEntity implements Comparable<Card> {
if (!shares) {
return false;
}
} else if (restriction.equals("YourBattlefield")) {
final CardList list = sourceController.getCardsIn(Zone.Battlefield);
if (list.isEmpty()) {
return false;
}
boolean shares = false;
for (final Card card : sourceController.getCardsIn(Constant.Zone.Battlefield)) {
if (this.getName().equals(card.getName())) {
shares = true;
}
if (!shares) {
return false;
}
}
}
} else if (property.startsWith("sharesTypeWith")) {
if (!this.sharesTypeWith(source)) {