swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setPosition( pos ); phaseReport.append( "   The swarming unit, " ) .append( swarmer.getShortName() ) .append( ", drowns!\n" ) .append( destroyEntity(swarmer, "a watery grave", false) ); entityUpdate( swarmerId );
if (!(swarmer instanceof BattleArmor)) { swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setPosition( pos ); phaseReport.append( "   The swarming unit, " ) .append( swarmer.getShortName() ) .append( ", drowns!\n" ) .append( destroyEntity(swarmer, "a watery grave", false) ); entityUpdate( swarmerId ); }
    private void drownSwarmer(Entity entity, Coords pos) {        // Any swarming infantry will be destroyed.        final int swarmerId = entity.getSwarmAttackerId();        if ( Entity.NONE != swarmerId ) {            final Entity swarmer = game.getEntity( swarmerId );            swarmer.setSwarmTargetId( Entity.NONE );            entity.setSwarmAttackerId( Entity.NONE );            swarmer.setPosition( pos );            phaseReport.append( "   The swarming unit, " )                .append( swarmer.getShortName() )                .append( ", drowns!\n" )                .append( destroyEntity(swarmer,                                       "a watery grave", false) );            entityUpdate( swarmerId );        }    }