mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Added Wrexial, the Risen Deep.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user