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