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