mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Added Land's Edge.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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_leeches.txt svneol=native#text/plain
|
||||||
res/cardsfolder/l/land_tax.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/landbind_ritual.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/l/lands_edge.txt -text
|
||||||
res/cardsfolder/l/landslide.txt -text
|
res/cardsfolder/l/landslide.txt -text
|
||||||
res/cardsfolder/l/lantern_kami.txt svneol=native#text/plain
|
res/cardsfolder/l/lantern_kami.txt svneol=native#text/plain
|
||||||
res/cardsfolder/l/lantern_lit_graveyard.txt svneol=native#text/plain
|
res/cardsfolder/l/lantern_lit_graveyard.txt svneol=native#text/plain
|
||||||
|
|||||||
11
res/cardsfolder/l/lands_edge.txt
Normal file
11
res/cardsfolder/l/lands_edge.txt
Normal 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
|
||||||
@@ -60,6 +60,9 @@ public class DamageDealAi extends DamageAiBase {
|
|||||||
dmg = ComputerUtilMana.determineLeftoverMana(sa, ai);
|
dmg = ComputerUtilMana.determineLeftoverMana(sa, ai);
|
||||||
source.setSVar("PayX", Integer.toString(dmg));
|
source.setSVar("PayX", Integer.toString(dmg));
|
||||||
}
|
}
|
||||||
|
if ("DiscardLands".equals(sa.getParam("AILogic"))) {
|
||||||
|
dmg = 2;
|
||||||
|
}
|
||||||
|
|
||||||
if (dmg <= 0) {
|
if (dmg <= 0) {
|
||||||
return false;
|
return false;
|
||||||
@@ -78,6 +81,10 @@ public class DamageDealAi extends DamageAiBase {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ("DiscardLands".equals(sa.getParam("AILogic")) && !ComputerUtilCost.checkDiscardCost(ai, abCost, source)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (source.getName().equals("Stuffy Doll")) {
|
if (source.getName().equals("Stuffy Doll")) {
|
||||||
// Now stuffy sits around for blocking
|
// Now stuffy sits around for blocking
|
||||||
// TODO(sol): this should also happen if Stuffy is going to die
|
// TODO(sol): this should also happen if Stuffy is going to die
|
||||||
|
|||||||
Reference in New Issue
Block a user