- Converted parts of Forsaken Wastes and Leyline of Punishment to script.

This commit is contained in:
Sloth
2012-05-12 07:40:24 +00:00
parent a939a04269
commit b6e7457f0d
3 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
Name:Forsaken Wastes
ManaCost:2 B
Types:World Enchantment
Text:Players cannot gain life.
Text:no text
S:Mode$ Continuous | Affected$ Player | AddKeyword$ You can't gain life. | Description$ Players can't gain life.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Player | Execute$ TrigLoseLife | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of each player's upkeep, that player loses 1 life.
T:Mode$ SpellCast | TargetsValid$ Card.Self | Execute$ TrigLoseLife5 | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME becomes the target of a spell, that spell's controller loses 5 life.
SVar:TrigLoseLife:AB$LoseLife | Cost$ 0 | Defined$ TriggeredPlayer | LifeAmount$ 1

View File

@@ -1,7 +1,8 @@
Name:Leyline of Punishment
ManaCost:2 R R
Types:Enchantment
Text:If Leyline of Punishment is in your opening hand, you may begin the game with it on the battlefield. Players can't gain life. Damage can't be prevented.
Text:If Leyline of Punishment is in your opening hand, you may begin the game with it on the battlefield. Damage can't be prevented.
S:Mode$ Continuous | Affected$ Player | AddKeyword$ You can't gain life. | Description$ Players can't gain life.
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/leyline_of_punishment.jpg

View File

@@ -381,8 +381,7 @@ public abstract class Player extends GameEntity {
* @return a boolean.
*/
public final boolean canGainLife() {
if (AllZoneUtil.isCardInPlay("Leyline of Punishment") || AllZoneUtil.isCardInPlay("Platinum Emperion", this)
|| AllZoneUtil.isCardInPlay("Forsaken Wastes")) {
if (AllZoneUtil.isCardInPlay("Platinum Emperion", this)) {
return false;
}
if (this.hasKeyword("You can't gain life.")) {