mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- AI will no longer use AF_Tap during his turn outside of combat
This commit is contained in:
@@ -649,6 +649,20 @@ public class AbilityFactory_PermanentState {
|
|||||||
Random r = MyRandom.random;
|
Random r = MyRandom.random;
|
||||||
boolean randomReturn = r.nextFloat() <= Math.pow(.6667, sa.getActivationsThisTurn());
|
boolean randomReturn = r.nextFloat() <= Math.pow(.6667, sa.getActivationsThisTurn());
|
||||||
|
|
||||||
|
Phase phase = AllZone.getPhase();
|
||||||
|
Player turn = phase.getPlayerTurn();
|
||||||
|
|
||||||
|
if (turn.isHuman()){
|
||||||
|
// Tap things down if it's Human's turn
|
||||||
|
}
|
||||||
|
else if (phase.inCombat() && phase.isBefore(Constant.Phase.Combat_Declare_Blockers)){
|
||||||
|
// TODO Tap creatures down if in combat
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
// Generally don't want to tap things during AI turn outside of combat
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (tgt == null) {
|
if (tgt == null) {
|
||||||
ArrayList<Card> defined = AbilityFactory.getDefinedCards(source, params.get("Defined"), sa);
|
ArrayList<Card> defined = AbilityFactory.getDefinedCards(source, params.get("Defined"), sa);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user