- Little tweaks in the AI of AF Pump.

- Removed RemAIDeck SVar from some cards with xCosts.
This commit is contained in:
Sloth
2011-11-23 21:59:49 +00:00
parent 27985b9003
commit 101ad677f0
6 changed files with 4 additions and 5 deletions

View File

@@ -264,6 +264,7 @@ public class AbilityFactoryPump {
// give haste to creatures that could attack with it
if (c.hasSickness() && kHaste && AllZone.getPhase().isPlayerTurn(AllZone.getComputerPlayer())
&& CombatUtil.canAttackNextTurn(c)
&& c.isUntapped()
&& AllZone.getPhase().isBefore(Constant.Phase.COMBAT_DECLARE_ATTACKERS)) {
return true;
}
@@ -298,6 +299,7 @@ public class AbilityFactoryPump {
// is the creature blocked and the blocker would survive
if (AllZone.getPhase().isAfter(Constant.Phase.COMBAT_DECLARE_BLOCKERS)
&& (attack > 0)
&& AllZone.getCombat().isAttacking(c) && AllZone.getCombat().isBlocked(c)
&& (AllZone.getCombat().getBlockers(c) != null)
&& !CombatUtil.blockerWouldBeDestroyed(AllZone.getCombat().getBlockers(c).get(0))) {