mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Added Retraced Image.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
12
res/cardsfolder/r/retraced_image.txt
Normal file
12
res/cardsfolder/r/retraced_image.txt
Normal 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
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user