- Added Wrexial, the Risen Deep.

This commit is contained in:
Sloth
2012-02-17 10:41:42 +00:00
parent 75a6de8c7b
commit bb83d51c71
5 changed files with 31 additions and 4 deletions

1
.gitattributes vendored
View File

@@ -10218,6 +10218,7 @@ res/cardsfolder/w/wrench_mind.txt svneol=native#text/plain
res/cardsfolder/w/wrens_run_packmaster.txt svneol=native#text/plain
res/cardsfolder/w/wretched_anurid.txt svneol=native#text/plain
res/cardsfolder/w/wretched_banquet.txt -text
res/cardsfolder/w/wrexial_the_risen_deep.txt -text
res/cardsfolder/w/wring_flesh.txt svneol=native#text/plain
res/cardsfolder/w/wu_admiral.txt svneol=native#text/plain
res/cardsfolder/w/wu_elite_cavalry.txt svneol=native#text/plain

View File

@@ -0,0 +1,16 @@
Name:Wrexial, the Risen Deep
ManaCost:3 U U B
Types:Legendary Creature Kraken
Text:no text
PT:5/8
K:Islandwalk
K:Swampwalk
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Player | CombatDamage$ True | Execute$ TrigPump | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may cast target instant or sorcery card from that player's graveyard without paying its mana cost. If that card would be put into a graveyard this turn, exile it instead.
SVar:TrigPump:AB$ Pump | Cost$ 0 | TgtZone$ Graveyard | ValidTgts$ Instant.YouDontCtrl,Sorcery.YouDontCtrl | TgtPrompt$ Choose target instant or sorcery card from an opponent's graveyard | KW$ HIDDEN If CARDNAME would be put into a graveyard, exile it instead. | PumpZone$ Graveyard | SubAbility$ TrigPlay
SVar:TrigPlay:DB$ Play | Defined$ Targeted | WithoutManaCost$ True
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/wrexial_the_risen_deep.jpg
SetInfo:COM|Mythic|http://magiccards.info/scans/en/cmd/239.jpg
SetInfo:WWK|Mythic|http://magiccards.info/scans/en/wwk/120.jpg
Oracle:Islandwalk, swampwalk\nWhenever Wrexial, the Risen Deep deals combat damage to a player, you may cast target instant or sorcery card from that player's graveyard without paying its mana cost. If that card would be put into a graveyard this turn, exile it instead.
End

View File

@@ -1017,7 +1017,6 @@ public final class AbilityFactoryChangeZone {
if (params.containsKey("Unimprint")) {
card.clearImprinted();
}
System.out.println("change fetchList:" + fetchList);
for (int i = 0; i < changeNum; i++) {
if ((fetchList.size() == 0) || (destination == null)) {

View File

@@ -308,7 +308,12 @@ public final class AbilityFactoryPlay {
newSA.setDescription(sa.getDescription() + " (without paying its mana cost)");
AllZone.getGameAction().playSpellAbility(newSA);
} else if (tgtSA.canPlayAI()) {
ComputerUtil.playSpellAbilityWithoutPayingManaCost(tgtSA);
if (sa instanceof Spell) {
Spell spell = (Spell) sa;
if (spell.canPlayFromEffectAI(false, true)) {
ComputerUtil.playSpellAbilityWithoutPayingManaCost(tgtSA);
}
}
}
} else {
if (controller.isHuman()) {

View File

@@ -555,6 +555,7 @@ public class AbilityFactoryPump {
*/
private boolean pumpTgtAI(final SpellAbility sa, final int defense, final int attack, final boolean mandatory) {
if (!mandatory
&& sa.getPayCosts() != null
&& AllZone.getPhaseHandler().isAfter(Constant.Phase.COMBAT_DECLARE_BLOCKERS_INSTANT_ABILITY)
&& !(this.abilityFactory.isCurse() && ((defense < 0) || !this
.containsCombatRelevantKeyword(this.keywords)))) {
@@ -571,7 +572,12 @@ public class AbilityFactoryPump {
return true;
}
} else {
list = this.getPumpCreatures(defense, attack, sa);
if (!tgt.canTgtCreature()) {
Zone zone = tgt.getZone().get(0);
list = AllZoneUtil.getCardsIn(zone);
} else {
list = this.getPumpCreatures(defense, attack, sa);
}
if (tgt.canTgtPlayer() && !tgt.canOnlyTgtOpponent()) {
tgt.addTarget(AllZone.getComputerPlayer());
return true;
@@ -617,7 +623,7 @@ public class AbilityFactoryPump {
}
}
t = CardFactoryUtil.getBestCreatureAI(list);
t = CardFactoryUtil.getBestAI(list);
tgt.addTarget(t);
list.remove(t);
}