mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Little improvement for the AI of AF Animate.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user