- Little improvement for the AI of AF Animate.

This commit is contained in:
Sloth
2011-09-30 20:04:23 +00:00
parent 9ae73b8648
commit 470c31c6c1

View File

@@ -316,16 +316,18 @@ public final class AbilityFactory_Animate {
bFlag |= (!c.isCreature() && !c.isTapped() && !(c.getTurnInZone() == AllZone.getPhase().getTurn())); bFlag |= (!c.isCreature() && !c.isTapped() && !(c.getTurnInZone() == AllZone.getPhase().getTurn()));
//for creatures that could be improved (like Figure of Destiny) //for creatures that could be improved (like Figure of Destiny)
int power = -5; if (c.isCreature() && (params.containsKey("Permanent") || (!c.isTapped() && !c.isSick()))) {
if (params.containsKey("Power")) { int power = -5;
power = AbilityFactory.calculateAmount(source, params.get("Power"), sa); if (params.containsKey("Power")) {
} power = AbilityFactory.calculateAmount(source, params.get("Power"), sa);
int toughness = -5; }
if (params.containsKey("Toughness")) { int toughness = -5;
toughness = AbilityFactory.calculateAmount(source, params.get("Toughness"), sa); if (params.containsKey("Toughness")) {
} toughness = AbilityFactory.calculateAmount(source, params.get("Toughness"), sa);
if (power + toughness > c.getCurrentPower() + c.getCurrentToughness()) { }
bFlag = true; if (power + toughness > c.getCurrentPower() + c.getCurrentToughness()) {
bFlag = true;
}
} }
} }