mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Improved changeZoneAllTriggerAINoCost.
This commit is contained in:
@@ -2459,14 +2459,14 @@ public final class AbilityFactoryChangeZone {
|
|||||||
// if the AI is using it defensively, then something else needs to occur
|
// if the AI is using it defensively, then something else needs to occur
|
||||||
// if only creatures are affected evaluate both lists and pass only
|
// if only creatures are affected evaluate both lists and pass only
|
||||||
// if human creatures are more valuable
|
// if human creatures are more valuable
|
||||||
if ((humanType.getNotType("Creature").size() == 0) && (computerType.getNotType("Creature").size() == 0)) {
|
if ((humanType.getNotType("Creature").isEmpty()) && (computerType.getNotType("Creature").isEmpty())) {
|
||||||
if (CardFactoryUtil.evaluateCreatureList(computerType) > CardFactoryUtil
|
if (CardFactoryUtil.evaluateCreatureList(computerType) >= CardFactoryUtil
|
||||||
.evaluateCreatureList(humanType)) {
|
.evaluateCreatureList(humanType)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} // otherwise evaluate both lists by CMC and pass only if human
|
} // otherwise evaluate both lists by CMC and pass only if human
|
||||||
// permanents are more valuable
|
// permanents are more valuable
|
||||||
else if (CardFactoryUtil.evaluatePermanentList(computerType) > CardFactoryUtil
|
else if (CardFactoryUtil.evaluatePermanentList(computerType) >= CardFactoryUtil
|
||||||
.evaluatePermanentList(humanType)) {
|
.evaluatePermanentList(humanType)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -2506,14 +2506,14 @@ public final class AbilityFactoryChangeZone {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// don't activate if human gets more back than AI does
|
// don't activate if human gets more back than AI does
|
||||||
if ((humanType.getNotType("Creature").size() == 0) && (computerType.getNotType("Creature").size() == 0)) {
|
if ((humanType.getNotType("Creature").isEmpty()) && (computerType.getNotType("Creature").isEmpty())) {
|
||||||
if (CardFactoryUtil.evaluateCreatureList(computerType) < CardFactoryUtil
|
if (CardFactoryUtil.evaluateCreatureList(computerType) <= CardFactoryUtil
|
||||||
.evaluateCreatureList(humanType)) {
|
.evaluateCreatureList(humanType)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} // otherwise evaluate both lists by CMC and pass only if human
|
} // otherwise evaluate both lists by CMC and pass only if human
|
||||||
// permanents are less valuable
|
// permanents are less valuable
|
||||||
else if (CardFactoryUtil.evaluatePermanentList(computerType) < CardFactoryUtil
|
else if (CardFactoryUtil.evaluatePermanentList(computerType) <= CardFactoryUtil
|
||||||
.evaluatePermanentList(humanType)) {
|
.evaluatePermanentList(humanType)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user