mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Simplified Phyrexian Unlife
This commit is contained in:
@@ -3,7 +3,8 @@ ManaCost:2 W
|
|||||||
Types:Enchantment
|
Types:Enchantment
|
||||||
Text:no text
|
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.
|
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:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/phyrexian_unlife.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/phyrexian_unlife.jpg
|
||||||
SetInfo:NPH|Rare|http://magiccards.info/scans/en/nph/18.jpg
|
SetInfo:NPH|Rare|http://magiccards.info/scans/en/nph/18.jpg
|
||||||
|
|||||||
@@ -526,19 +526,8 @@ public abstract class Player extends GameEntity {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean infect = source.hasKeyword("Infect");
|
boolean infect = source.hasKeyword("Infect") ||
|
||||||
final StringBuilder sb = new StringBuilder(
|
this.hasKeyword("All damage is dealt to you as though its source had infect.");
|
||||||
"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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (infect) {
|
if (infect) {
|
||||||
this.addPoisonCounters(damageToDo, source);
|
this.addPoisonCounters(damageToDo, source);
|
||||||
|
|||||||
Reference in New Issue
Block a user