- Little improvements in AF GainLife AI.

This commit is contained in:
jendave
2011-08-06 23:35:37 +00:00
parent 3b9da91bb5
commit e23e6e16a6

View File

@@ -177,7 +177,9 @@ public class AbilityFactory_AlterLife {
if (abCost.getLifeCost() && life > 5) return false;
if (abCost.getDiscardCost() && life > 5) return false;
if (abCost.getSubCounter() && life > 7){
if (abCost.getSubCounter()){
//non +1/+1 counters should be used
if (abCost.getCounterType().equals(Counters.P1P1)){
// A card has a 25% chance per counter to be able to pass through here
// 4+ counters will always pass. 0 counters will never
int currentNum = source.getCounters(abCost.getCounterType());
@@ -186,6 +188,7 @@ public class AbilityFactory_AlterLife {
return false;
}
}
}
if (!ComputerUtil.canPayCost(sa))
return false;