getOppose() instanceof WarUnitCity) { return [1, 1]; } if ($unit->isAttacker()) { return [1.4, 0.7143]; } return [1, 1]; } }