mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- The AI will no longer cheat with Incremental Growth.
This commit is contained in:
@@ -434,11 +434,7 @@ public class AbilityFactoryCounters {
|
|||||||
chance &= subAb.chkAIDrawback();
|
chance &= subAb.chkAIDrawback();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AbilityFactory.playReusable(sa)) {
|
|
||||||
return chance;
|
return chance;
|
||||||
}
|
|
||||||
|
|
||||||
return ((r.nextFloat() < .6667) && chance);
|
|
||||||
} // putCanPlayAI
|
} // putCanPlayAI
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -466,12 +462,6 @@ public class AbilityFactoryCounters {
|
|||||||
final Player player = af.isCurse() ? AllZone.getHumanPlayer() : AllZone.getComputerPlayer();
|
final Player player = af.isCurse() ? AllZone.getHumanPlayer() : AllZone.getComputerPlayer();
|
||||||
|
|
||||||
list = player.getCardsIn(ZoneType.Battlefield);
|
list = player.getCardsIn(ZoneType.Battlefield);
|
||||||
list = list.filter(new CardListFilter() {
|
|
||||||
@Override
|
|
||||||
public boolean addCard(final Card c) {
|
|
||||||
return c.canBeTargetedBy(sa);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (abTgt != null) {
|
if (abTgt != null) {
|
||||||
list = list.getValidCards(abTgt.getValidTgts(), source.getController(), source);
|
list = list.getValidCards(abTgt.getValidTgts(), source.getController(), source);
|
||||||
@@ -483,6 +473,12 @@ public class AbilityFactoryCounters {
|
|||||||
abTgt.resetTargets();
|
abTgt.resetTargets();
|
||||||
// target loop
|
// target loop
|
||||||
while (abTgt.getNumTargeted() < abTgt.getMaxTargets(sa.getSourceCard(), sa)) {
|
while (abTgt.getNumTargeted() < abTgt.getMaxTargets(sa.getSourceCard(), sa)) {
|
||||||
|
list = list.filter(new CardListFilter() {
|
||||||
|
@Override
|
||||||
|
public boolean addCard(final Card c) {
|
||||||
|
return sa.canTarget(c);
|
||||||
|
}
|
||||||
|
});
|
||||||
if (list.size() == 0) {
|
if (list.size() == 0) {
|
||||||
if ((abTgt.getNumTargeted() < abTgt.getMinTargets(sa.getSourceCard(), sa))
|
if ((abTgt.getNumTargeted() < abTgt.getMinTargets(sa.getSourceCard(), sa))
|
||||||
|| (abTgt.getNumTargeted() == 0)) {
|
|| (abTgt.getNumTargeted() == 0)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user