mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Tweaked untargeted pumping AI.
This commit is contained in:
@@ -581,7 +581,6 @@ public class AbilityFactoryPump {
|
|||||||
// when this happens we need to expand AI to consider if its ok for
|
// when this happens we need to expand AI to consider if its ok for
|
||||||
// everything?
|
// everything?
|
||||||
for (final Card card : cards) {
|
for (final Card card : cards) {
|
||||||
|
|
||||||
if (this.abilityFactory.isCurse()) {
|
if (this.abilityFactory.isCurse()) {
|
||||||
if (card.getController().isComputer()) {
|
if (card.getController().isComputer()) {
|
||||||
return false;
|
return false;
|
||||||
@@ -591,13 +590,13 @@ public class AbilityFactoryPump {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
return r.nextFloat() <= Math.pow(.6667, activations);
|
||||||
}
|
}
|
||||||
if (shouldPumpCard(sa, card)) {
|
if (shouldPumpCard(sa, card)) {
|
||||||
break;
|
return r.nextFloat() <= Math.pow(.6667, activations);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return r.nextFloat() <= Math.pow(.6667, activations);
|
return false;
|
||||||
}
|
}
|
||||||
//Targeted
|
//Targeted
|
||||||
return this.pumpTgtAI(sa, defense, attack, false);
|
return this.pumpTgtAI(sa, defense, attack, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user