- Added Pyromancer Ascension. Stole moomarc's script and added some code to make it shine.

This commit is contained in:
jeffwadsworth
2012-02-10 19:32:37 +00:00
parent b518ce2ed6
commit 519d02528b
3 changed files with 32 additions and 0 deletions

View File

@@ -6838,6 +6838,23 @@ public class Card extends GameEntity implements Comparable<Card> {
}
}
}
} else if (property.startsWith("sharesNameWith")) {
final String restriction = property.split("sharesNameWith ")[1];
if (restriction.equals("YourGraveyard")) {
final CardList list = sourceController.getCardsIn(Zone.Graveyard);
if (list.isEmpty()) {
return false;
}
boolean shares = false;
for (final Card card : sourceController.getCardsIn(Constant.Zone.Graveyard)) {
if (this.getName().equals(card.getName())) {
shares = true;
}
}
if (!shares) {
return false;
}
}
} else if (property.startsWith("sharesTypeWith")) {
if (!this.sharesTypeWith(source)) {
return false;