- Added the properties "TopGraveyardCreature" and "TopGraveyard" to hasProperty.

- Added Shallow Grave.
This commit is contained in:
Sloth
2011-10-01 06:46:35 +00:00
parent bcafd4aa02
commit d20c830c02
4 changed files with 36 additions and 10 deletions

View File

@@ -5051,6 +5051,17 @@ public class Card extends GameEntity implements Comparable<Card> {
CardList list = this.getOwner().getCardsIn(Zone.Graveyard);
if (!list.getDirectlyAbove(source, this))
return false;
}else if (Property.startsWith("TopGraveyardCreature")){
CardList list = this.getOwner().getCardsIn(Zone.Graveyard);
list = list.getType("Creature");
list.reverse();
if (list.isEmpty() || !this.equals(list.get(0)))
return false;
}else if (Property.startsWith("TopGraveyard")){
CardList list = this.getOwner().getCardsIn(Zone.Graveyard);
list.reverse();
if (list.isEmpty() || !this.equals(list.get(0)))
return false;
} else if (Property.startsWith("Cloned")) {
if (cloneOrigin == null || !cloneOrigin.equals(source)) return false;
} else if (Property.startsWith("DamagedBy")) {