mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Added Pyromancer Ascension. Stole moomarc's script and added some code to make it shine.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user