- Simplified Phyrexian Unlife

This commit is contained in:
Sol
2012-04-27 17:14:46 +00:00
parent 560bc516f7
commit e64f7c94ed
2 changed files with 4 additions and 14 deletions

View File

@@ -3,7 +3,8 @@ ManaCost:2 W
Types:Enchantment
Text:no text
S:Mode$ Continuous | Affected$ You | AddKeyword$ You don't lose the game for having 0 or less life. | Description$ You don't lose the game for having 0 or less life.
K:As long as you have 0 or less life, all damage is dealt to you as though its source had infect.
S:Mode$ Continuous | CheckSVar$ UnlifeCondition | SVarCompare$ LE0 | Affected$ You | AddKeyword$ All damage is dealt to you as though its source had infect. | Description$ As long as you have 0 or less life, all damage is dealt to you as though its source had infect.
SVar:UnlifeCondition:Count$YourLifeTotal
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/phyrexian_unlife.jpg
SetInfo:NPH|Rare|http://magiccards.info/scans/en/nph/18.jpg

View File

@@ -526,19 +526,8 @@ public abstract class Player extends GameEntity {
return false;
}
boolean infect = source.hasKeyword("Infect");
final StringBuilder sb = new StringBuilder(
"As long as you have 0 or less life, all damage is dealt to you as though its source had infect.");
if ((this.getLife() <= 0) && !infect) {
final CardList cards = this.getCardsIn(ZoneType.Battlefield);
for (final Card card : cards) {
if (card.hasKeyword(sb.toString())) {
infect = true;
break;
}
}
}
boolean infect = source.hasKeyword("Infect") ||
this.hasKeyword("All damage is dealt to you as though its source had infect.");
if (infect) {
this.addPoisonCounters(damageToDo, source);