| 299 | } |
| 300 | |
| 301 | private static boolean shouldFight(Card fighter, Card opponent, int pumpAttack, int pumpDefense) { |
| 302 | if (canKill(fighter, opponent, pumpAttack)) { |
| 303 | if (!canKill(opponent, fighter, -pumpDefense)) { // can survive |
| 304 | return true; |
| 305 | } |
| 306 | if (MyRandom.getRandom().nextInt(20) < (opponent.getCMC() - fighter.getCMC())) { // trade |
| 307 | return true; |
| 308 | } |
| 309 | } |
| 310 | return false; |
| 311 | } |
| 312 | |
| 313 | public static boolean canKill(Card fighter, Card opponent, int pumpAttack) { |
| 314 | if (opponent.getSVar("Targeting").equals("Dies")) { |