if (step.isProne()) { dmg = 7 * movingUnit.locations(); logMsg.append("everything [prone] (");
/** * Returns whether or not a unit would end up prone after all of the steps */ public boolean getFinalProne() { if (getLastStep() != null) { return getLastStep().isProne(); } if (getEntity() == null) { return false; } return getEntity().isProne(); }
if ((hex.depth() >= 2) || step.isProne() || !(movingUnit instanceof Mech)) { submergedLocations.add(loc);
Mockito.when(mockFinalStep.isProne()).thenReturn(true); Mockito.when(mockFinalHex.getTerrainTypes()).thenReturn(new int[]{Terrains.MAGMA}); Mockito.when(mockFinalHex.terrainLevel(Terrains.MAGMA)).thenReturn(2); Assert.assertEquals(66.0, testRanker.checkPathForHazards(mockPath, mockUnit, mockGame), TOLERANCE); Mockito.when(mockFinalStep.isProne()).thenReturn(false); Mockito.when(mockFinalHex.getTerrainTypes()).thenReturn(new int[0]); Mockito.when(mockFinalHex.terrainLevel(Terrains.MAGMA)).thenReturn(0);
&& !isProne() && !isHullDown() && !((entity instanceof Protomech) && (entity && !(entity instanceof Tank) // Tanks can drive out of && (isProne() || isHullDown())) { movementType = EntityMovementType.MOVE_ILLEGAL; return; && (isProne() || !(entity instanceof Mech) || entity.isStuck())) { movementType = EntityMovementType.MOVE_ILLEGAL;
if (isProne() && (entity instanceof Mech)) { int mpUsed = 1; if (entity instanceof BipedMech) {