- Added Land's Edge.

This commit is contained in:
Sloth
2013-05-10 20:51:50 +00:00
parent 605e1e3c47
commit fb4b53acc6
3 changed files with 19 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -6007,6 +6007,7 @@ res/cardsfolder/l/land_grant.txt -text
res/cardsfolder/l/land_leeches.txt svneol=native#text/plain
res/cardsfolder/l/land_tax.txt svneol=native#text/plain
res/cardsfolder/l/landbind_ritual.txt svneol=native#text/plain
res/cardsfolder/l/lands_edge.txt -text
res/cardsfolder/l/landslide.txt -text
res/cardsfolder/l/lantern_kami.txt svneol=native#text/plain
res/cardsfolder/l/lantern_lit_graveyard.txt svneol=native#text/plain

View File

@@ -0,0 +1,11 @@
Name:Land's Edge
ManaCost:1 R R
Types:World Enchantment
Text:no text
A:AB$ DealDamage | Cost$ Discard<1/Card> | ValidTgts$ Player | NumDmg$ X | References$ X | AnyPlayer$ True | AILogic$ DiscardLands | SpellDescription$ If the discarded card is a land card, CARDNAME deals 2 damage to target player. Any player may activate this ability.
SVar:X:Discarded$Valid Land/Times.2
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/lands_edge.jpg
Oracle:Discard a card: If the discarded card is a land card, Land's Edge deals 2 damage to target player. Any player may activate this ability.
SetInfo:CHR Rare
SetInfo:LEG Rare

View File

@@ -60,6 +60,9 @@ public class DamageDealAi extends DamageAiBase {
dmg = ComputerUtilMana.determineLeftoverMana(sa, ai);
source.setSVar("PayX", Integer.toString(dmg));
}
if ("DiscardLands".equals(sa.getParam("AILogic"))) {
dmg = 2;
}
if (dmg <= 0) {
return false;
@@ -78,6 +81,10 @@ public class DamageDealAi extends DamageAiBase {
return false;
}
if ("DiscardLands".equals(sa.getParam("AILogic")) && !ComputerUtilCost.checkDiscardCost(ai, abCost, source)) {
return false;
}
if (source.getName().equals("Stuffy Doll")) {
// Now stuffy sits around for blocking
// TODO(sol): this should also happen if Stuffy is going to die