- 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

1
.gitattributes vendored
View File

@@ -6890,6 +6890,7 @@ res/cardsfolder/s/shadowmage_infiltrator.txt svneol=native#text/plain
res/cardsfolder/s/shadowstorm.txt svneol=native#text/plain
res/cardsfolder/s/shaleskin_bruiser.txt svneol=native#text/plain
res/cardsfolder/s/shaleskin_plower.txt svneol=native#text/plain
res/cardsfolder/s/shallow_grave.txt -text
res/cardsfolder/s/shambling_remains.txt svneol=native#text/plain
res/cardsfolder/s/shambling_shell.txt svneol=native#text/plain
res/cardsfolder/s/shambling_strider.txt svneol=native#text/plain

View File

@@ -1,11 +1,13 @@
Name:Rakalite
ManaCost:6
Types:Artifact
Text:no text
A:AB$ PreventDamage | Cost$ 2 | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player | Amount$ 1 | SubAbility$ SVar=DBReturn | SpellDescription$ Prevent the next 1 damage that would be dealt to target creature or player this turn. Return CARDNAME to its owner's hand at the beginning of the next end step.
SVar:DBReturn:DB$ DelayedTrigger | Mode$ Phase | Phase$ End of Turn | Execute$ TrigBounce | TriggerDescription$ Return CARDNAME to its owner's hand.
SVar:TrigBounce:DB$ ChangeZone | Defined$ Self | Origin$ Battlefield | Destination$ Hand
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/rakalite.jpg
Name:Rakalite
ManaCost:6
Types:Artifact
Text:no text
A:AB$ PreventDamage | Cost$ 2 | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player | Amount$ 1 | SubAbility$ SVar=DBReturn | SpellDescription$ Prevent the next 1 damage that would be dealt to target creature or player this turn. Return CARDNAME to its owner's hand at the beginning of the next end step.
SVar:DBReturn:DB$ DelayedTrigger | Mode$ Phase | Phase$ End of Turn | Execute$ TrigBounce | TriggerDescription$ Return CARDNAME to its owner's hand.
SVar:TrigBounce:DB$ ChangeZone | Defined$ Self | Origin$ Battlefield | Destination$ Hand
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/rakalite.jpg
SetInfo:ATQ|Uncommon|http://magiccards.info/scans/en/aq/27.jpg
Oracle:{2}: Prevent the next 1 damage that would be dealt to target creature or player this turn. Return Rakalite to its owner's hand at the beginning of the next end step.
End

View File

@@ -0,0 +1,12 @@
Name:Shallow Grave
ManaCost:1 B
Types:Instant
Text:no text
A:SP$ ChangeZone | Cost$ 1 B | Origin$ Graveyard | Destination$ Battlefield | ChangeType$ Creature.TopGraveyardCreature+YouCtrl | Hidden$ True | Mandatory$ True | RememberChanged$ True | SubAbility$ DBPump | SpellDescription$ Return the top creature card of your graveyard to the battlefield. That creature gains haste until end of turn. Exile it at the beginning of the next end step.
SVar:DBPump:DB$ Pump | Defined$ Remembered | KW$ Haste & HIDDEN At the beginning of the end step, exile CARDNAME. | SubAbility$ DBCleanup
SVar:DBCleanup:DB$Cleanup | ClearRemembered$ True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/shallow_grave.jpg
SetInfo:MIR|Rare|http://magiccards.info/scans/en/mr/39.jpg
Oracle:Return the top creature card of your graveyard to the battlefield. That creature gains haste until end of turn. Exile it at the beginning of the next end step.
End

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")) {