mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Added a filter to ComputerAI_General.getMain2() and this should prevent the computer from summoning Ball Lightning type creatures during main phase 2.
- Minor fix to code block for Breath of Life; False Defeat; Resurrection; Zombify.
This commit is contained in:
@@ -918,7 +918,7 @@ public class CardFactory_Sorceries {
|
|||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Breath of Life") || cardName.equals("Resurrection")
|
else if(cardName.equals("Breath of Life") || cardName.equals("Resurrection")
|
||||||
|| cardName.equals("False Defeat") || cardName.equals("Zombify")) {
|
|| cardName.equals("False Defeat") || cardName.equals("Zombify")) {
|
||||||
final SpellAbility spell = new Spell(card) {
|
final SpellAbility spell = new Spell(card) {
|
||||||
private static final long serialVersionUID = -5799646914112924814L;
|
private static final long serialVersionUID = -5799646914112924814L;
|
||||||
|
|||||||
@@ -219,6 +219,10 @@ public class ComputerAI_General implements Computer {
|
|||||||
all.addAll(AllZone.Computer_Hand.getCards());
|
all.addAll(AllZone.Computer_Hand.getCards());
|
||||||
all.addAll(AllZone.Computer_Play.getCards());
|
all.addAll(AllZone.Computer_Play.getCards());
|
||||||
all.addAll(CardFactoryUtil.getFlashbackCards(Constant.Player.Computer).toArray());
|
all.addAll(CardFactoryUtil.getFlashbackCards(Constant.Player.Computer).toArray());
|
||||||
|
|
||||||
|
// Prevent the computer from summoning Ball Lightning type creatures during main phase 2
|
||||||
|
all = all.getNotKeyword("At the beginning of the end step, sacrifice CARDNAME.");
|
||||||
|
|
||||||
all = all.filter(new CardListFilter() {
|
all = all.filter(new CardListFilter() {
|
||||||
public boolean addCard(Card c) {
|
public boolean addCard(Card c) {
|
||||||
if(c.isLand()) return false;
|
if(c.isLand()) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user