(_attacker, target)
| 448 | }, |
| 449 | |
| 450 | getCounterTargetingModifier(_attacker, target) { |
| 451 | const healthRatio = target.health / target.stats.health; |
| 452 | let score = 40; |
| 453 | |
| 454 | if (target.abilities[ABILITY.GOOEY_BODY]?.isUpgraded?.()) { |
| 455 | score += 110; |
| 456 | } |
| 457 | |
| 458 | if (healthRatio < 0.5) { |
| 459 | score += 160; |
| 460 | } |
| 461 | |
| 462 | if (healthRatio < 0.25) { |
| 463 | score += 220; |
| 464 | } |
| 465 | |
| 466 | if (healthRatio > 0.8) { |
| 467 | score -= 70; |
| 468 | } |
| 469 | |
| 470 | return score; |
| 471 | }, |
| 472 | |
| 473 | getProximityPenalty(_mover, enemy) { |
| 474 | const healthRatio = enemy.health / enemy.stats.health; |
no test coverage detected