diff --git a/.gitattributes b/.gitattributes index 2197cd55981..95969546220 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1866,6 +1866,7 @@ forge-gui/res/cardsfolder/a/anurid_scavenger.txt -text forge-gui/res/cardsfolder/a/anurid_swarmsnapper.txt -text forge-gui/res/cardsfolder/a/anvil_of_bogardan.txt svneol=native#text/plain forge-gui/res/cardsfolder/a/anvilwrought_raptor.txt -text +forge-gui/res/cardsfolder/a/anya_merciless_angel.txt -text forge-gui/res/cardsfolder/a/apathy.txt -text forge-gui/res/cardsfolder/a/apes_of_rath.txt svneol=native#text/plain forge-gui/res/cardsfolder/a/apex_hawks.txt svneol=native#text/plain diff --git a/forge-game/src/main/java/forge/game/player/Player.java b/forge-game/src/main/java/forge/game/player/Player.java index 08041e11e26..fdb9dab400d 100644 --- a/forge-game/src/main/java/forge/game/player/Player.java +++ b/forge-game/src/main/java/forge/game/player/Player.java @@ -2160,6 +2160,10 @@ public class Player extends GameEntity implements Comparable { return false; } } + } else if (property.startsWith("LessThanHalfStartingLifeTotal")) { + if (this.getLife() >= (int) Math.ceil(this.getStartingLife() / 2.0)) { + return false; + } } return true; } diff --git a/forge-gui/res/cardsfolder/a/anya_merciless_angel.txt b/forge-gui/res/cardsfolder/a/anya_merciless_angel.txt new file mode 100644 index 00000000000..84cf28db793 --- /dev/null +++ b/forge-gui/res/cardsfolder/a/anya_merciless_angel.txt @@ -0,0 +1,11 @@ +Name:Anya, Merciless Angel +ManaCost:3 R W +Types:Legendary Creature Angel +PT:4/4 +K:Flying +S:Mode$ Continuous | Affected$ Card.Self | AddPower$ X | AddToughness$ X | Description$ CARDNAME gets +3/+3 for each opponent whose life total is less than half his or her starting life total. +SVar:X:SVar$Y/Times.3 +SVar:Y:PlayerCountOpponents$HasPropertyLessThanHalfStartingLifeTotal +S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Indestructible | CheckSVar$ Y | Description$ As long as an opponent's life total is less than half his or her starting life total, CARDNAME has indestructible. +SVar:Picture:http://www.wizards.com/global/images/magic/general/anya_merciless_angel.jpg +Oracle:Flying\nAnya, Merciless Angel gets +3/+3 for each opponent whose life total is less than half his or her starting life total.\nAs long as an opponent's life total is less than half his or her starting life total, Anya has indestructible.