- AI will only cast Wrath of God and use Nevinyrral's Disk during Main2.

This commit is contained in:
jendave
2011-08-06 03:29:50 +00:00
parent 28e6c209f1
commit d72091bdd3

View File

@@ -3833,7 +3833,7 @@ public class CardFactory implements NewConstants {
card.clearSpellAbility(); card.clearSpellAbility();
card.addSpellAbility(spell); card.addSpellAbility(spell);
} }
//*************** END ************ END ************************* //*************** END ************ END *************************
//*************** START *********** START ************************** //*************** START *********** START **************************
else if(cardName.equals("Nevinyrral's Disk")) { else if(cardName.equals("Nevinyrral's Disk")) {
@@ -3895,7 +3895,8 @@ public class CardFactory implements NewConstants {
computer = computer.getType("Creature"); computer = computer.getType("Creature");
//the computer will at least destroy 2 more human creatures //the computer will at least destroy 2 more human creatures
return computer.size() < human.size() - 1 || AllZone.Computer_Life.getLife() < 7; return AllZone.Phase.getPhase().equals(Constant.Phase.Main2) &&
(computer.size() < human.size() - 1 || AllZone.Computer_Life.getLife() < 7);
} }
};//SpellAbility };//SpellAbility
card.addSpellAbility(ability); card.addSpellAbility(ability);
@@ -7934,8 +7935,9 @@ public class CardFactory implements NewConstants {
computer = computer.getType("Creature"); computer = computer.getType("Creature");
// the computer will at least destroy 2 more human creatures // the computer will at least destroy 2 more human creatures
return computer.size() < human.size() - 1 return AllZone.Phase.getPhase().equals(Constant.Phase.Main2) &&
|| (AllZone.Computer_Life.getLife() < 7 && !human.isEmpty()); (computer.size() < human.size() - 1
|| (AllZone.Computer_Life.getLife() < 7 && !human.isEmpty()));
} }
};// SpellAbility };// SpellAbility
card.clearSpellAbility(); card.clearSpellAbility();