- The AI will no longer use activated lifegain abilities before main2.

This commit is contained in:
jendave
2011-08-06 23:38:28 +00:00
parent ef54d429c3
commit dfbc148045

View File

@@ -8,6 +8,7 @@ import forge.AllZone;
import forge.AllZoneUtil;
import forge.Card;
import forge.ComputerUtil;
import forge.Constant;
import forge.Counters;
import forge.MyRandom;
import forge.Player;
@@ -196,6 +197,10 @@ public class AbilityFactory_AlterLife {
if (!AllZone.ComputerPlayer.canGainLife())
return false;
//Don't use lifegain before main 2 if possible
if(AllZone.Phase.isBefore(Constant.Phase.Main2) && !params.containsKey("ActivatingPhases"))
return false;
// TODO handle proper calculation of X values based on Cost and what would be paid
//final int amount = calculateAmount(af.getHostCard(), amountStr, sa);