- 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

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);
}