Added Elderscale Wurm (M13)

This commit is contained in:
moomarc
2012-07-08 18:26:02 +00:00
parent b199e9146d
commit 43f014ea6a
3 changed files with 22 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -2704,6 +2704,7 @@ res/cardsfolder/e/elder_mastery.txt svneol=native#text/plain
res/cardsfolder/e/elder_of_laurels.txt -text
res/cardsfolder/e/elder_pine_of_jukai.txt -text
res/cardsfolder/e/elder_spawn.txt -text svneol=unset#text/plain
res/cardsfolder/e/elderscale_wurm.txt -text
res/cardsfolder/e/eldrazi_conscription.txt svneol=native#text/plain
res/cardsfolder/e/eldrazi_monument.txt svneol=native#text/plain
res/cardsfolder/e/eldrazi_temple.txt -text

View File

@@ -0,0 +1,15 @@
Name:Elderscale Wurm
ManaCost:4 G G G
Types:Creature Wurm
Text:no text
PT:7/7
K:Trample
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ TrigLife | TriggerDescription$ When CARDNAME enters the battlefield, if your life total is less than 7, your life total becomes 7.
SVar:TrigLife:AB$SetLife | Cost$ 0 | Defined$ You | LifeAmount$ 7 | ConditionLifeTotal$ You | ConditionLifeAmount$ LT7
S:Mode$ Continuous | CheckSVar$ ElderscaleCondition | SVarCompare$ GE7 | References$ ElderscaleCondition | Affected$ You | AddKeyword$ Damage that would reduce your life total to less than 7 reduces it to 7 instead. | Description$ As long as you have 7 or more life, damage that would reduce your life total to less than 7 reduces it to 7 instead.
SVar:ElderscaleCondition:Count$YourLifeTotal
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/elderscale_wurm.jpg
SetInfo:M13|Mythic|http://magiccards.info/scans/en/m13/167.jpg
Oracle:Trample\nWhen Elderscale Wurm enters the battlefield, if your life total is less than 7, your life total becomes 7.\nAs long as you have 7 or more life, damage that would reduce your life total to less than 7 reduces it to 7 instead.
End

View File

@@ -525,6 +525,8 @@ public abstract class Player extends GameEntity {
return false;
}
boolean changeDmgToLife = this.hasKeyword("Damage that would reduce your life total to less than 7 reduces it to 7 instead.");
boolean infect = source.hasKeyword("Infect")
|| this.hasKeyword("All damage is dealt to you as though its source had infect.");
@@ -533,8 +535,11 @@ public abstract class Player extends GameEntity {
} else {
// Worship does not reduce the damage dealt but changes the effect
// of the damage
if (PlayerUtil.worshipFlag(this) && (this.life <= damageToDo)) {
if (PlayerUtil.worshipFlag(this) && (this.life <= damageToDo) && (!changeDmgToLife)) {
this.loseLife(Math.min(damageToDo, this.life - 1), source);
}
else if (changeDmgToLife) {
this.loseLife(Math.min(damageToDo, this.life - 7), source);
} else {
// rule 118.2. Damage dealt to a player normally causes that
// player to lose that much life.