- Added Scheme: Your Inescapable Doom

This commit is contained in:
swordshine
2013-11-03 11:46:46 +00:00
parent ac1e279235
commit 454b7715c0
4 changed files with 17 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -13325,6 +13325,7 @@ res/cardsfolder/y/young_pyromancer.txt -text
res/cardsfolder/y/young_wei_recruits.txt svneol=native#text/plain
res/cardsfolder/y/young_wolf.txt -text
res/cardsfolder/y/your_fate_is_thrice_sealed.txt -text
res/cardsfolder/y/your_inescapable_doom.txt -text
res/cardsfolder/y/your_puny_minds_cannot_fathom.txt -text
res/cardsfolder/y/your_will_is_not_your_own.txt -text
res/cardsfolder/y/youthful_knight.txt svneol=native#text/plain

View File

@@ -0,0 +1,11 @@
Name:Your Inescapable Doom
ManaCost:no cost
Types:Ongoing Scheme
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ You | TriggerZones$ Command | Execute$ TrigPutCounter | TriggerDescription$ At the beginning of your end step, put a doom counter on this scheme, then this scheme deals damage equal to the number of doom counters on it to the opponent with the highest life total among your opponents. If two or more players are tied for highest life total, you choose one.
SVar:TrigPutCounter:AB$ PutCounter | Cost$ 0 | Defined$ Self | CounterType$ DOOM | CounterNum$ 1 | SubAbility$ DBChoosePlayer
SVar:DBChoosePlayer:DB$ ChoosePlayer | Defined$ You | Choices$ Player.Opponent+LifeEquals_X | References$ X | SubAbility$ DBDmg
SVar:DBDmg:DB$ DealDamage | Defined$ ChosenPlayer | NumDmg$ Y | References$ Y
SVar:X:PlayerCountOpponents$HighestLifeTotal
SVar:Y:Count$CardCounters.DOOM
SVar:Picture:http://www.cardforge.org/fpics/lq_schemes/your_inescapable_doom.jpg
Oracle:At the beginning of your end step, put a doom counter on this scheme, then this scheme deals damage equal to the number of doom counters on it to the opponent with the highest life total among your opponents. If two or more players are tied for highest life total, you choose one.

View File

@@ -19,7 +19,6 @@ import forge.Singletons;
import forge.card.ability.AbilityUtils;
import forge.card.ability.SpellAbilityEffect;
import forge.card.ability.ai.ChangeZoneAi;
import forge.card.cardfactory.CardFactoryUtil;
import forge.card.spellability.AbilitySub;
import forge.card.spellability.SpellAbility;
import forge.card.spellability.SpellAbilityStackInstance;

View File

@@ -2465,6 +2465,11 @@ public class Player extends GameEntity implements Comparable<Player> {
if (source.getChosenPlayer() == null || !source.getChosenPlayer().equals(this)) {
return false;
}
} else if (property.startsWith("LifeEquals_")) {
int life = AbilityUtils.calculateAmount(source, property.substring(11), null);
if (this.getLife() != life) {
return false;
}
} else if (property.startsWith("withMore")) {
final String cardType = property.split("sThan")[0].substring(8);
final Player controller = "Active".equals(property.split("sThan")[1]) ? game.getPhaseHandler().getPlayerTurn() : sourceController;